Changeset 607


Ignore:
Timestamp:
08/09/06 13:36:48 (13 years ago)
Author:
szabolcs
Message:

closes #633 spent 30m

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FieldsWidgets.py

    r581 r607  
    2020from Products.Archetypes.Registry import registerField, registerWidget 
    2121from Products.Archetypes.Field import StringField, LinesField, ReferenceField 
    22 from Products.Archetypes.Widget import TextAreaWidget, StringWidget, SelectionWidget, TypesWidget 
     22from Products.Archetypes.Widget import TextAreaWidget, StringWidget, SelectionWidget, TypesWidget, MultiSelectionWidget 
    2323from config import to_unicode 
    2424from Products.Archetypes import config 
     
    243243) 
    244244 
     245class TwoColumnMultiSelectionWidget(MultiSelectionWidget): 
     246    _properties = MultiSelectionWidget._properties.copy() 
     247    _properties.update({ 
     248        'macro' : 'twocolumnwidget', 
     249    }) 
     250     
     251registerWidget(TwoColumnMultiSelectionWidget, 
     252    title='Two column widget', 
     253    description='Two column multiselection widget', 
     254    used_for=('Products.Archetypes.Field.MultiSelectionField',) 
     255) 
    245256 
    246257 
  • trunk/SharedMetadata.py

    r601 r607  
    2020#These are common pieces of schema for content types 
    2121from Products.Archetypes.public import * 
    22 from FieldsWidgets import WYSIWYMWidget, WYSIWYMField, TagsField, TagsWidget, CopyrightWidget, Age_rangeWidget, GroupWidget 
     22from FieldsWidgets import * 
    2323from config import LICENSES 
    2424 
     
    303303        multivalued=True, 
    304304        schemata="metadata", 
    305         widget=MultiSelectionWidget( 
     305        widget=TwoColumnMultiSelectionWidget( 
    306306            format="checkbox", 
    307307            label="Target group", 
Note: See TracChangeset for help on using the changeset viewer.