Ignore:
Timestamp:
Feb 9, 2010 7:26:24 PM (14 years ago)
Author:
mylan
Message:

Register own canonical path adapter for the product. Register separate adapter for canonicalpath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/browser/views.py

    r1672 r1675  
    209209        """ 
    210210        purl = getToolByName(self.context, 'portal_url')() 
    211         canpath = queryAdapter(self.context, interfaces.ICanonicalPath) 
     211        canpath = queryAdapter(self.context, interfaces.ISEOCanonicalPath) 
    212212        return purl + canpath.canonical_path() 
    213213 
     
    489489                context.plone_utils.addPortalMessage(state) 
    490490                kwargs = {'modification_date' : DateTime()}  
    491                 context.plone_utils.contentEdit(context, **kwargs)  
     491                context.plone_utils.contentEdit(context, **kwargs) 
    492492                return request.response.redirect(self.context.absolute_url()) 
    493493            context.plone_utils.addPortalMessage(state, 'error') 
Note: See TracChangeset for help on using the changeset viewer.