Ignore:
Timestamp:
Aug 17, 2010 12:39:41 PM (10 years ago)
Author:
fenix
Message:
  • added tests;
  • fixed style bug (None class was added when no portlet style is selected);
  • removed trailing characters;
  • removed unnecessary pice of code;
  • some javascript optimizations;
File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.portlet.collection/trunk/quintagroup/portlet/collection/vocabularies.py

    r1572 r2755  
    2121    implements(IVocabularyFactory) 
    2222 
    23      
     23 
    2424    def __call__(self, context): 
    2525        styles = getStylesVocabulary(context) 
     
    3434                value = value.decode(charset) 
    3535            items.append(SimpleTerm(value, value, _(title))) 
    36         return SimpleVocabulary(items) 
    37  
    38         items = [SimpleTerm(value, value, title) for value, title in PORTLET_CSS_STYLES] 
    3936        return SimpleVocabulary(items) 
    4037 
Note: See TracChangeset for help on using the changeset viewer.