Dataforms: 'fixed' fields can have multiple lines of text spanning over
several <value/> elements.
This commit is contained in:
parent
c2825a83f7
commit
7cbddfa4d5
|
@ -34,7 +34,7 @@ def Field(typ, **attrs):
|
||||||
''' Helper function to create a field of given type. '''
|
''' Helper function to create a field of given type. '''
|
||||||
f = {
|
f = {
|
||||||
'boolean': BooleanField,
|
'boolean': BooleanField,
|
||||||
'fixed': StringField,
|
'fixed': TextMultiField, # not editable, still can have multiple lines of text
|
||||||
'hidden': StringField,
|
'hidden': StringField,
|
||||||
'text-private': StringField,
|
'text-private': StringField,
|
||||||
'text-single': StringField,
|
'text-single': StringField,
|
||||||
|
@ -54,7 +54,7 @@ def ExtendField(node):
|
||||||
typ=node.getAttr('type')
|
typ=node.getAttr('type')
|
||||||
f = {
|
f = {
|
||||||
'boolean': BooleanField,
|
'boolean': BooleanField,
|
||||||
'fixed': StringField,
|
'fixed': TextMultiField,
|
||||||
'hidden': StringField,
|
'hidden': StringField,
|
||||||
'text-private': StringField,
|
'text-private': StringField,
|
||||||
'text-single': StringField,
|
'text-single': StringField,
|
||||||
|
@ -197,7 +197,6 @@ class StringField(DataField):
|
||||||
pass
|
pass
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
||||||
class ListField(DataField):
|
class ListField(DataField):
|
||||||
''' Covers fields of types: jid-multi, jid-single, list-multi, list-single. '''
|
''' Covers fields of types: jid-multi, jid-single, list-multi, list-single. '''
|
||||||
@nested_property
|
@nested_property
|
||||||
|
|
Loading…
Reference in New Issue