Changeset 983

Show
Ignore:
Timestamp:
09/27/07 04:54:00
Author:
deo
Message:

Made sure to not break when the product isn't yet installed. Fallback to the default implementation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qSEOptimizer/branches/additional-keywords/__init__.py

    r979 r983  
    2424 
    2525    def listMetaTags(self, context): 
    26         site_props = getToolByName(context, 'portal_properties').site_properties 
     26        portal_props = getToolByName(context, 'portal_properties') 
     27        seo_props = getToolByName(portal_props, 'seo_properties', None) 
     28        if seo_props is None: 
     29            return old_lmt(self, context) 
     30 
     31        site_props = getToolByName(portal_props, 'site_properties') 
    2732        exposeDCMetaTags = site_props.exposeDCMetaTags 
    2833