Changeset 2755 in products for quintagroup.portlet.collection/trunk/quintagroup/portlet/collection/vocabularies.py
- Timestamp:
- Aug 17, 2010 12:39:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.portlet.collection/trunk/quintagroup/portlet/collection/vocabularies.py
r1572 r2755 21 21 implements(IVocabularyFactory) 22 22 23 23 24 24 def __call__(self, context): 25 25 styles = getStylesVocabulary(context) … … 34 34 value = value.decode(charset) 35 35 items.append(SimpleTerm(value, value, _(title))) 36 return SimpleVocabulary(items)37 38 items = [SimpleTerm(value, value, title) for value, title in PORTLET_CSS_STYLES]39 36 return SimpleVocabulary(items) 40 37
Note: See TracChangeset
for help on using the changeset viewer.