Commit 5f830b62 authored by Thibaut Deheunynck's avatar Thibaut Deheunynck

Now you can specify the property orientation in tooltipfield for a RadioField

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21719 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e025e0db
......@@ -1879,13 +1879,25 @@ class ScribusParser:
# object is listbox, and listbox have several possible values
# WARNING listbox have not been tested in graphic rendering for
# the moment. is there any use for listbox in PDF-like rendering ?
if str(object_properties['type']) in ('ListBox', 'RadioField') :
if str(object_properties['type']) == 'ListBox':
# checking if this listbox and the radioField has different possible values
object_properties['items'] = \
sp.getObjectTooltipProperty('items',
'',
object_name,
tooltipfield_properties_dict)
if str(object_properties['type']) == 'RadioField':
# checking if the radioField has different possible values
object_properties['items'] = \
sp.getObjectTooltipProperty('items',
'',
object_name,
tooltipfield_properties_dict)
object_properties['orientation'] = \
sp.getObjectTooltipProperty('orientation',
'',
object_name,
tooltipfield_properties_dict)
# object is datetimefield and need several informations
if str(object_properties['type']) == 'DateTimeField':
# has been tested successfully
......@@ -2148,6 +2160,8 @@ class ScribusParser:
for word_item in properties_field['items'].split('|'):
items.append((word_item, word_item.capitalize()))
object_dict['attributes']['items'] = items
object_dict['attributes']['orientation'] = \
properties_field['orientation']
#elif object_dict['erp_type'] == 'CheckBoxField':
# checkboxfield needs to have their field data updated
# this is not done automatically so it is needed to do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment