Changeset 1685 in products
- Timestamp:
- Feb 10, 2010 12:21:38 PM (15 years ago)
- Location:
- quintagroup.canonicalpath/trunk/quintagroup/canonicalpath
- Files:
-
- 2 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) -
quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/configure.zcml
r782 r1685 7 7 <include package="archetypes.schemaextender" /> 8 8 9 <adapter 10 factory=".adapters.canonicalPathAdapter" 11 9 <adapter factory=".adapters.canonicalPathAdapter" /> 10 11 <adapter name="canonical_path" factory=".catalog.canonical_path" /> 12 12 13 13 <genericsetup:registerProfile
Note: See TracChangeset
for help on using the changeset viewer.