Changeset 1685 in products for quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/catalog.py
- Timestamp:
- Feb 10, 2010 12:21:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/catalog.py
r782 r1685 1 from zope.interface import Interface 1 2 from zope.component import queryAdapter 2 from Products.CMFPlone.CatalogTool import registerIndexableAttribute3 from plone.indexer.decorator import indexer 3 4 4 5 from interfaces import ICanonicalPath 5 6 6 7 def canonical_path(obj, portal,**kwargs):7 @indexer(Interface) 8 def canonical_path(obj, **kwargs): 8 9 """Return canonical_path property for the object. 9 10 """ … … 12 13 return cpath.canonical_path() 13 14 return None 14 15 registerIndexableAttribute('canonical_path', canonical_path)
Note: See TracChangeset
for help on using the changeset viewer.