provide new field types 'checkboxes', 'radiobuttons'
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3659 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
ff63c4bbd7
commit
639cc81422
2 changed files with 6 additions and 2 deletions
|
@ -51,8 +51,9 @@ Field types
|
|||
|
||||
>>> from cybertools.composer.schema.interfaces import fieldTypes
|
||||
>>> sorted(t.token for t in fieldTypes)
|
||||
['checkbox', 'date', 'display', 'dropdown', 'email', 'fileupload', 'html',
|
||||
'list', 'number', 'password', 'spacer', 'textarea', 'textline']
|
||||
['checkbox', 'checkboxes', 'date', 'display', 'dropdown', 'email',
|
||||
'fileupload', 'html', 'list', 'number', 'password', 'radiobuttons',
|
||||
'spacer', 'textarea', 'textline']
|
||||
|
||||
>>> from zope.schema.vocabulary import SimpleVocabulary
|
||||
>>> textFieldTypes = SimpleVocabulary([t for t in fieldTypes if t.token in
|
||||
|
|
|
@ -99,8 +99,11 @@ fieldTypes = SimpleVocabulary((
|
|||
instanceName='fileupload'),
|
||||
FieldType('checkbox', 'checkbox', u'Checkbox', instanceName='boolean'),
|
||||
FieldType('dropdown', 'dropdown', u'Drop-down selection'),
|
||||
FieldType('radiobuttons', 'radiobuttons', u'Radiobutton Group'),
|
||||
#FieldType('listbox', 'listbox', u'List box (multiple selection)'),
|
||||
FieldType('list', 'list', u'List', instanceName='list'),
|
||||
FieldType('checkboxes', 'checkboxes', u'Checkbox Group',
|
||||
instanceName='checkboxes'),
|
||||
FieldType('calculated', 'display', u'Calculated Value',
|
||||
instanceName='calculated'),
|
||||
FieldType('spacer', 'spacer', u'Spacer',
|
||||
|
|
Loading…
Add table
Reference in a new issue