Changeset 979 in products
- Timestamp:
- Sep 22, 2007 6:43:09 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
qSEOptimizer/branches/additional-keywords/__init__.py
r954 r979 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)32 26 33 27 if _present: … … 72 66 metaTags[key] = value 73 67 74 # add custom meta tags (added from qseo tab by user) for given context75 property_prefix = 'qSEO_custom_'76 for property, value in propertyItems(context):77 idx = property.find(property_prefix)78 if idx == 0 and len(property) > len(property_prefix):79 metaTags[property[len(property_prefix):]] = value80 81 68 # Set the additional matching keywords, if any 82 69 if zope_interface_available:
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/chrome/common/qtrac_logo.png)