Re: References from Archetypes to Dexterity Types.

Sean Upton <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <CANjV-2NHU3SejXiTJYZYVUN-JJof36o9wBFnR=03Xy6bps5Azw@mail.gmail.com>
On Wed, Sep 4, 2013 at 6:01 AM, Patrick Gerken <lists-Hgn/qBBDvdzwVR/[email protected]> wrote:
>
> You can reference DX Types when they get the referencablebehavior.
> They are then indexed in the UID Catalog. We are doing this right now.

Ideally, plone.app.referencebehavior would register the indexer
adapter for the UID catalog for all objects providing IAttributeUUID,
at least while uid_catalog still lives.  I suspect that making such a
change would be harmless, see:

http://thread.gmane.org/gmane.comp.web.zope.plone.devel/32790

For DX-.DX relations, use portal_catalog UID index for back-refs
query.  For AT->DX relations, use referenceable behavior.  IMHO,
whether or not you choose to do the latter should not ideally affect
whether the item is indexed in uid_catalog (I think everything that
can have a UID should be indexed in it, until it is removed from
Plone).

Sean

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.