Author: liori Date: 2007-06-01 22:14:06 +0200 (Fri, 01 Jun 2007) New Revision: 8191
Modified: trunk/src/common/dataforms.py Log: Dataforms: 'fixed' fields can have multiple lines of text spanning over several <value/> elements.
Modified: trunk/src/common/dataforms.py =================================================================== --- trunk/src/common/dataforms.py 2007-06-01 19:49:21 UTC (rev 8190) +++ trunk/src/common/dataforms.py 2007-06-01 20:14:06 UTC (rev 8191) @@ -34,7 +34,7 @@ ''' Helper function to create a field of given type. ''' f = { 'boolean': BooleanField, - 'fixed': StringField, + 'fixed': TextMultiField, # not editable, still can have multiple lines of text 'hidden': StringField, 'text-private': StringField, 'text-single': StringField, @@ -54,7 +54,7 @@ typ=node.getAttr('type') f = { 'boolean': BooleanField, - 'fixed': StringField, + 'fixed': TextMultiField, 'hidden': StringField, 'text-private': StringField, 'text-single': StringField, @@ -197,7 +197,6 @@ pass return locals()
- class ListField(DataField): ''' Covers fields of types: jid-multi, jid-single, list-multi, list-single. ''' @nested_property