Changeset 954 in products for qSEOptimizer/trunk/__init__.py
- Timestamp:
- Sep 3, 2007 2:14:48 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
qSEOptimizer/trunk/__init__.py
r198 r954 24 24 except ImportError: 25 25 _present = False 26 27 def 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) 26 32 27 33 if _present: … … 68 74 # add custom meta tags (added from qseo tab by user) for given context 69 75 property_prefix = 'qSEO_custom_' 70 for property, value in context.propertyItems():76 for property, value in propertyItems(context): 71 77 idx = property.find(property_prefix) 72 78 if idx == 0 and len(property) > len(property_prefix):
Note: See TracChangeset
for help on using the changeset viewer.