Changeset 607
- Timestamp:
- 08/09/06 13:36:48 (13 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FieldsWidgets.py
r581 r607 20 20 from Products.Archetypes.Registry import registerField, registerWidget 21 21 from Products.Archetypes.Field import StringField, LinesField, ReferenceField 22 from Products.Archetypes.Widget import TextAreaWidget, StringWidget, SelectionWidget, TypesWidget 22 from Products.Archetypes.Widget import TextAreaWidget, StringWidget, SelectionWidget, TypesWidget, MultiSelectionWidget 23 23 from config import to_unicode 24 24 from Products.Archetypes import config … … 243 243 ) 244 244 245 class TwoColumnMultiSelectionWidget(MultiSelectionWidget): 246 _properties = MultiSelectionWidget._properties.copy() 247 _properties.update({ 248 'macro' : 'twocolumnwidget', 249 }) 250 251 registerWidget(TwoColumnMultiSelectionWidget, 252 title='Two column widget', 253 description='Two column multiselection widget', 254 used_for=('Products.Archetypes.Field.MultiSelectionField',) 255 ) 245 256 246 257 -
trunk/SharedMetadata.py
r601 r607 20 20 #These are common pieces of schema for content types 21 21 from Products.Archetypes.public import * 22 from FieldsWidgets import WYSIWYMWidget, WYSIWYMField, TagsField, TagsWidget, CopyrightWidget, Age_rangeWidget, GroupWidget22 from FieldsWidgets import * 23 23 from config import LICENSES 24 24 … … 303 303 multivalued=True, 304 304 schemata="metadata", 305 widget= MultiSelectionWidget(305 widget=TwoColumnMultiSelectionWidget( 306 306 format="checkbox", 307 307 label="Target group",
Note: See TracChangeset
for help on using the changeset viewer.