diff options
author | Tomasz Melcer <liori@exroot.org> | 2007-06-02 00:14:06 +0400 |
---|---|---|
committer | Tomasz Melcer <liori@exroot.org> | 2007-06-02 00:14:06 +0400 |
commit | 7cbddfa4d58d18561357e53412b00c0cb09ec8ba (patch) | |
tree | 2ac00864275a5e359c5f7ef6c6faa14979a98df2 /src/common/dataforms.py | |
parent | c2825a83f710bc3089f6c55fe37ba6ff116035df (diff) |
Dataforms: 'fixed' fields can have multiple lines of text spanning over
several <value/> elements.
Diffstat (limited to 'src/common/dataforms.py')
-rw-r--r-- | src/common/dataforms.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/dataforms.py b/src/common/dataforms.py index a5db7e6fc..6c6817d6a 100644 --- a/src/common/dataforms.py +++ b/src/common/dataforms.py @@ -34,7 +34,7 @@ def Field(typ, **attrs): ''' 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 @@ def ExtendField(node): typ=node.getAttr('type') f = { 'boolean': BooleanField, - 'fixed': StringField, + 'fixed': TextMultiField, 'hidden': StringField, 'text-private': StringField, 'text-single': StringField, @@ -197,7 +197,6 @@ class StringField(DataField): pass return locals() - class ListField(DataField): ''' Covers fields of types: jid-multi, jid-single, list-multi, list-single. ''' @nested_property |