Changeset 3145 in products for quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/adapters.py
- Timestamp:
- Apr 19, 2011 12:05:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/adapters.py
r2369 r3145 55 55 """ 56 56 if self.context.hasProperty(self.prop): 57 self.context.manage_delProperties(ids=[self.prop, ])57 self.context.manage_delProperties(ids=[self.prop, ]) 58 58 59 59 … … 86 86 def __init__(self, context): 87 87 super(DefaultCanonicalPathAdapter, self).__init__(context) 88 self.purl = getToolByName(self.context, 'portal_url')88 self.purl = getToolByName(self.context, 'portal_url') 89 89 90 90 def getDefault(self): 91 return '/' +'/'.join(self.purl.getRelativeContentPath(self.context))91 return '/' + '/'.join(self.purl.getRelativeContentPath(self.context)) 92 92 93 93 canonical_path = property(DefaultCanonicalAdapter.getProp,
Note: See TracChangeset
for help on using the changeset viewer.