[Zope-CMF] Some informations about CMFUid

Gregoire Weber gregweb at gmx.ch
Thu Jul 22 07:27:39 EDT 2004


Hi,

In addition to the new CMFUid tools I extended the 'Favorite' content type
using CMFUid to show the usage of unique ids. If you didn't install
CMFUid Favorites work as before.

Try it out by moving around the target object a favorite links to. The link gets 
updated.

>From the Unique Id Readme

    CMFUid introduces a unique id implementation to the CMF (from the 
    beginning of CMF 1.5).
    
    Implementation
    
        The supplied tools attach the unique ids to the objects. The objects
        do not have to be aware of unique ids.
        
        The current implementation depends on the portal catalog to find an 
        object of a given unique id. The interfaces do not imply the use
        of the catalog (except the IUniqueIdBrainQuery).
        
        The 'portal_uidgenerator' tools responsibility is to generate unique
        ids. The 'portal_uidhandler' manages registering and accessing unique
        ids. It's the tool through that applications are accessing unique ids.
        
    Dependencies
    
        Object lookup by unique id depends on the portal_catalog
    
    Usage
    
        'portal_uidhandler' fully implements IUniqueIdHandler (IUniqueIdSet
        for registering/unregistering unique ids, IUniqueIdQuery for queries
        and IUniqueIdBrainQuery for more efficient querying).

Gregoire



More information about the Zope-CMF mailing list