Changeset 3556 in products for quintagroup.portlet.collection/trunk/quintagroup/portlet/collection/browser/configlet.py
- Timestamp:
- Sep 14, 2012 10:16:29 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.portlet.collection/trunk/quintagroup/portlet/collection/browser/configlet.py
r1572 r3556 23 23 title = schema.TextLine(title=u"title", required=False) 24 24 25 25 26 class ValueTitlePair(object): 26 27 implements(IValueTitlePair) 28 27 29 def __init__(self, value='', title=''): 28 30 self.value = value 29 31 self.title = title 32 30 33 31 34 class IQCollectionPortletPanelSchema(Interface): … … 40 43 ) 41 44 45 42 46 class QCollectionPortletControlPanelAdapter(SchemaAdapterBase): 43 47 adapts(IPloneSiteRoot) … … 50 54 51 55 def get_portlet_dropdown(self): 52 return [ValueTitlePair(v,t) for (v,t) in getStylesVocabulary(self.context)] 56 return [ValueTitlePair(v, t) for (v, t) in getStylesVocabulary( 57 self.context)] 53 58 54 59 def set_portlet_dropdown(self, value): … … 79 84 subwidget=valuetitle_widget) 80 85 86 81 87 class QCollectionPortletControlPanel(ControlPanelForm): 82 88 … … 86 92 label = _("QCollection portlet settings") 87 93 description = _("This form is for managing QCollection portlet " 88 94 "classes available on portlet add/edit form.") 89 95 form_name = _("QCollection portlet settings")
Note: See TracChangeset
for help on using the changeset viewer.