Changeset 954 in products for qSEOptimizer/trunk/__init__.py


Ignore:
Timestamp:
Sep 3, 2007 2:14:48 PM (17 years ago)
Author:
crchemist
Message:

merged with qSEOptimizer-plone-3.0 branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qSEOptimizer/trunk/__init__.py

    r198 r954  
    2424except ImportError: 
    2525    _present = False 
     26 
     27def propertyItems(context): 
     28    """Return a list of (id,property) tuples. 
     29    """ 
     30    return map(lambda i,c=context: (i['id'],getattr(c,i['id'],None)), 
     31                                context._properties) 
    2632 
    2733if _present: 
     
    6874        # add custom meta tags (added from qseo tab by user) for given context 
    6975        property_prefix = 'qSEO_custom_' 
    70         for property, value in context.propertyItems(): 
     76        for property, value in propertyItems(context): 
    7177            idx = property.find(property_prefix) 
    7278            if idx == 0 and len(property) > len(property_prefix): 
Note: See TracChangeset for help on using the changeset viewer.