Mercurial > libervia-backend
comparison src/tools/xml_tools.py @ 1473:675e0e9f1653
core , privmitivus (xmlui): add jidInput handling, with a simple String for now
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 18 Aug 2015 10:35:44 +0200 |
parents | c005c212b538 |
children | 7ac073d2e7e0 |
comparison
equal
deleted
inserted
replaced
1472:c005c212b538 | 1473:675e0e9f1653 |
---|---|
56 field.value = field.label | 56 field.value = field.label |
57 field.label = None | 57 field.label = None |
58 widget_args[0] = field.value | 58 widget_args[0] = field.value |
59 elif field.fieldType == 'text-single': | 59 elif field.fieldType == 'text-single': |
60 widget_type = "string" | 60 widget_type = "string" |
61 widget_kwargs['read_only'] = read_only | |
62 elif field.fieldType == 'jid-single': | |
63 widget_type = "jid_input" | |
61 widget_kwargs['read_only'] = read_only | 64 widget_kwargs['read_only'] = read_only |
62 elif field.fieldType == 'text-multi': | 65 elif field.fieldType == 'text-multi': |
63 widget_type = "textbox" | 66 widget_type = "textbox" |
64 widget_args[0] = u'\n'.join(field.values) | 67 widget_args[0] = u'\n'.join(field.values) |
65 widget_kwargs['read_only'] = read_only | 68 widget_kwargs['read_only'] = read_only |