Changeset 2105 in products


Ignore:
Timestamp:
Apr 12, 2010 1:55:54 PM (10 years ago)
Author:
mylan
Message:

#190: Fix bug in default ICanonicalPath adapter registration, property definition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.canonicalpath/trunk/quintagroup/canonicalpath/adapters.py

    r2103 r2105  
    6868    """Adapts base content to canonical path. 
    6969    """ 
    70     implements(ICanonicalLink) 
     70    implements(ICanonicalPath) 
    7171 
    7272    prop = PROPERTY_PATH 
     
    7575        return '/'+'/'.join(self.purl.getRelativeContentPath(self.context)) 
    7676 
    77     canonical_path = property(getProp, setProp, delProp) 
     77    canonical_path = property(DefaultCanonicalAdapter.getProp, 
     78                              DefaultCanonicalAdapter.setProp, 
     79                              DefaultCanonicalAdapter.delProp) 
    7880 
    7981 
     
    8890        return self.context.absolute_url() 
    8991 
    90     canonical_link = property(getProp, setProp, delProp) 
     92    canonical_link = property(DefaultCanonicalAdapter.getProp, 
     93                              DefaultCanonicalAdapter.setProp, 
     94                              DefaultCanonicalAdapter.delProp) 
Note: See TracChangeset for help on using the changeset viewer.