Commit 785fa5e8 authored by Sebastien Robin's avatar Sebastien Robin

Workflow cleanup: this looks changes introduced by mistake

parent 1d2812ac
...@@ -103,7 +103,6 @@ ...@@ -103,7 +103,6 @@
<string>my_type_property_sheet_list</string> <string>my_type_property_sheet_list</string>
<string>my_type_base_category_list</string> <string>my_type_base_category_list</string>
<string>my_type_icon</string> <string>my_type_icon</string>
<string>my_type_workflow_list</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -9,9 +9,7 @@ ...@@ -9,9 +9,7 @@
<item> <item>
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list/>
<string>columns</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -71,37 +69,6 @@ ...@@ -71,37 +69,6 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>columns</string> </key>
<value>
<list>
<tuple>
<string>id</string>
<string>Reference</string>
</tuple>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
<tuple>
<string>resource_title</string>
<string>Resource</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>Creation Date</string>
</tuple>
<tuple>
<string>translated_validation_state_title</string>
<string>State</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>Installation State</string>
</tuple>
</list>
</value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_view_mode_listbox_business_configuration</string> </value> <value> <string>my_view_mode_listbox_business_configuration</string> </value>
......
...@@ -88,8 +88,8 @@ ...@@ -88,8 +88,8 @@
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple>
<string>current_state/workflow_module/ebusiness_lotse_configuration_workflow/63</string>
<string>resource/workflow_module/ebusiness_lotse_configuration_workflow</string> <string>resource/workflow_module/ebusiness_lotse_configuration_workflow</string>
<string>current_state/workflow_module/ebusiness_lotse_configuration_workflow/63</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -6,22 +6,10 @@ ...@@ -6,22 +6,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_recorded_property_dict</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>default_reference</string> </key> <key> <string>default_reference</string> </key>
<value> <string>testRunMyDocConfigurationWorkflow</string> </value> <value> <string>testRunMyDocConfigurationWorkflow</string> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>test.erp5.testRunMyDocConfigurationWorkflow</string> </value> <value> <string>test.erp5.testRunMyDocConfigurationWorkflow</string> </value>
...@@ -36,37 +24,6 @@ ...@@ -36,37 +24,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>text_content_error_message</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple>
<string>W:165, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:166, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:167, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:168, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:169, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:170, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:171, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:172, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:173, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:176, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:177, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:178, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:179, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:180, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:181, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:182, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:183, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
<string>W:184, 0: Bad indentation. Found 5 spaces, expected 4 (bad-indentation)</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>version</string> </key> <key> <string>version</string> </key>
<value> <string>erp5</string> </value> <value> <string>erp5</string> </value>
...@@ -74,28 +31,13 @@ ...@@ -74,28 +31,13 @@
<item> <item>
<key> <string>workflow_history</string> </key> <key> <string>workflow_history</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<global name="PersistentMapping" module="Persistence.mapping"/> <global name="PersistentMapping" module="Persistence.mapping"/>
</pickle> </pickle>
...@@ -108,7 +50,7 @@ ...@@ -108,7 +50,7 @@
<item> <item>
<key> <string>component_validation_workflow</string> </key> <key> <string>component_validation_workflow</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -117,7 +59,7 @@ ...@@ -117,7 +59,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="4" aka="AAAAAAAAAAQ="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle> </pickle>
......
...@@ -184,6 +184,10 @@ ...@@ -184,6 +184,10 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>last_id</string> </key>
<value> <string>3</string> </value>
</item>
<item> <item>
<key> <string>modification_date</string> </key> <key> <string>modification_date</string> </key>
<value> <value>
......
...@@ -6,22 +6,10 @@ ...@@ -6,22 +6,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_recorded_property_dict</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>default_reference</string> </key> <key> <string>default_reference</string> </key>
<value> <string>testStandardConfigurationWorkflow</string> </value> <value> <string>testStandardConfigurationWorkflow</string> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>test.erp5.testStandardConfigurationWorkflow</string> </value> <value> <string>test.erp5.testStandardConfigurationWorkflow</string> </value>
...@@ -36,22 +24,6 @@ ...@@ -36,22 +24,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>text_content_error_message</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple>
<string>W:562, 4: Unreachable code (unreachable)</string>
<string>W:923, 4: Unused variable \'sale_packing_list\' (unused-variable)</string>
<string>W:963, 4: Unused variable \'business_process\' (unused-variable)</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>version</string> </key> <key> <string>version</string> </key>
<value> <string>erp5</string> </value> <value> <string>erp5</string> </value>
...@@ -59,28 +31,13 @@ ...@@ -59,28 +31,13 @@
<item> <item>
<key> <string>workflow_history</string> </key> <key> <string>workflow_history</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<global name="PersistentMapping" module="Persistence.mapping"/> <global name="PersistentMapping" module="Persistence.mapping"/>
</pickle> </pickle>
...@@ -93,7 +50,7 @@ ...@@ -93,7 +50,7 @@
<item> <item>
<key> <string>component_validation_workflow</string> </key> <key> <string>component_validation_workflow</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -102,7 +59,7 @@ ...@@ -102,7 +59,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="4" aka="AAAAAAAAAAQ="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle> </pickle>
......
...@@ -6,22 +6,10 @@ ...@@ -6,22 +6,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_recorded_property_dict</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>default_reference</string> </key> <key> <string>default_reference</string> </key>
<value> <string>testUNGConfigurationWorkflow</string> </value> <value> <string>testUNGConfigurationWorkflow</string> </value>
</item> </item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>test.erp5.testUNGConfigurationWorkflow</string> </value> <value> <string>test.erp5.testUNGConfigurationWorkflow</string> </value>
...@@ -36,18 +24,6 @@ ...@@ -36,18 +24,6 @@
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>text_content_error_message</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>text_content_warning_message</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>version</string> </key> <key> <string>version</string> </key>
<value> <string>erp5</string> </value> <value> <string>erp5</string> </value>
...@@ -55,28 +31,13 @@ ...@@ -55,28 +31,13 @@
<item> <item>
<key> <string>workflow_history</string> </key> <key> <string>workflow_history</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<global name="PersistentMapping" module="Persistence.mapping"/> <global name="PersistentMapping" module="Persistence.mapping"/>
</pickle> </pickle>
...@@ -89,7 +50,7 @@ ...@@ -89,7 +50,7 @@
<item> <item>
<key> <string>component_validation_workflow</string> </key> <key> <string>component_validation_workflow</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -98,7 +59,7 @@ ...@@ -98,7 +59,7 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="4" aka="AAAAAAAAAAQ="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/> <global name="WorkflowHistoryList" module="Products.ERP5Type.patches.WorkflowTool"/>
</pickle> </pickle>
......
...@@ -10,10 +10,6 @@ ...@@ -10,10 +10,6 @@
<key> <string>_Cacheable__manager_id</string> </key> <key> <string>_Cacheable__manager_id</string> </key>
<value> <string>http_cache</string> </value> <value> <string>http_cache</string> </value>
</item> </item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts48641303.03</string> </value>
</item>
<item> <item>
<key> <string>__name__</string> </key> <key> <string>__name__</string> </key>
<value> <string>jsplumb.css</string> </value> <value> <string>jsplumb.css</string> </value>
...@@ -26,10 +22,6 @@ ...@@ -26,10 +22,6 @@
<key> <string>precondition</string> </key> <key> <string>precondition</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>size</string> </key>
<value> <int>2380</int> </value>
</item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -169,10 +169,6 @@ ...@@ -169,10 +169,6 @@
<string>modification_date</string> <string>modification_date</string>
<string>Modification Date</string> <string>Modification Date</string>
</tuple> </tuple>
<tuple>
<string>portal_type</string>
<string>Type</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
...@@ -208,10 +204,6 @@ ...@@ -208,10 +204,6 @@
<string>int_index</string> <string>int_index</string>
<string>Index</string> <string>Index</string>
</tuple> </tuple>
<tuple>
<string>portal_type</string>
<string>Type</string>
</tuple>
<tuple> <tuple>
<string>translated_validation_state_title</string> <string>translated_validation_state_title</string>
<string>State</string> <string>State</string>
......
...@@ -1794,4 +1794,4 @@ ...@@ -1794,4 +1794,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
</ZopeData> </ZopeData>
\ No newline at end of file
...@@ -42,12 +42,6 @@ ...@@ -42,12 +42,6 @@
<value> <string>Folders allow to store a large number of documents (1,000,000 should not\n <value> <string>Folders allow to store a large number of documents (1,000,000 should not\n
be a problem).</string> </value> be a problem).</string> </value>
</item> </item>
<item>
<key> <string>erp5workflow_list</string> </key>
<value>
<tuple/>
</value>
</item>
<item> <item>
<key> <string>factory</string> </key> <key> <string>factory</string> </key>
<value> <string>addFolder</string> </value> <value> <string>addFolder</string> </value>
...@@ -70,15 +64,7 @@ be a problem).</string> </value> ...@@ -70,15 +64,7 @@ be a problem).</string> </value>
</item> </item>
<item> <item>
<key> <string>init_script</string> </key> <key> <string>init_script</string> </key>
<value> <value> <string></string> </value>
<none/>
</value>
</item>
<item>
<key> <string>permission</string> </key>
<value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
...@@ -88,18 +74,6 @@ be a problem).</string> </value> ...@@ -88,18 +74,6 @@ be a problem).</string> </value>
<key> <string>type_class</string> </key> <key> <string>type_class</string> </key>
<value> <string>Folder</string> </value> <value> <string>Folder</string> </value>
</item> </item>
<item>
<key> <string>type_interface</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>type_mixin</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -106,7 +106,6 @@ ...@@ -106,7 +106,6 @@
<string>my_type_property_sheet_list</string> <string>my_type_property_sheet_list</string>
<string>my_type_base_category_list</string> <string>my_type_base_category_list</string>
<string>my_type_icon</string> <string>my_type_icon</string>
<string>my_type_workflow_list</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -184,10 +184,6 @@ class DateTimeField(ZMIField): ...@@ -184,10 +184,6 @@ class DateTimeField(ZMIField):
if REQUEST.form['subfield_%s_%s' % (key, 'year')]: if REQUEST.form['subfield_%s_%s' % (key, 'year')]:
return None return None
gmt_timezones = [('GMT%s' %zone, 'GMT%s' %zone,) for zone in range(-12, 0)]\
+ [('GMT', 'GMT',),] \
+ [('GMT+%s' %zone, 'GMT+%s' %zone,) for zone in range(1, 13)]
def create_datetime_text_sub_form(): def create_datetime_text_sub_form():
sub_form = BasicForm() sub_form = BasicForm()
...@@ -238,7 +234,7 @@ def create_datetime_text_sub_form(): ...@@ -238,7 +234,7 @@ def create_datetime_text_sub_form():
title = "Timezone", title = "Timezone",
required = 0, required = 0,
default = 'GMT', default = 'GMT',
items = gmt_timezones, items = Widget.gmt_timezones,
size = 1) size = 1)
sub_form.add_fields([hour, minute, ampm, timezone], "time") sub_form.add_fields([hour, minute, ampm, timezone], "time")
return sub_form return sub_form
...@@ -296,7 +292,7 @@ def create_datetime_list_sub_form(): ...@@ -296,7 +292,7 @@ def create_datetime_list_sub_form():
title = "Timezone", title = "Timezone",
required = 0, required = 0,
default = 'GMT', default = 'GMT',
items = gmt_timezones, items = Widget.gmt_timezones,
size = 1) size = 1)
sub_form.add_group("time") sub_form.add_group("time")
......
...@@ -1296,6 +1296,8 @@ class MultiCheckBoxWidget(MultiItemsWidget): ...@@ -1296,6 +1296,8 @@ class MultiCheckBoxWidget(MultiItemsWidget):
MultiCheckBoxWidgetInstance = MultiCheckBoxWidget() MultiCheckBoxWidgetInstance = MultiCheckBoxWidget()
gmt_timezones = [(x, x) for x in sorted(set(Timezones()))]
class DateTimeWidget(Widget): class DateTimeWidget(Widget):
""" """
Added support for key in every call to render_sub_field Added support for key in every call to render_sub_field
...@@ -1377,6 +1379,15 @@ class DateTimeWidget(Widget): ...@@ -1377,6 +1379,15 @@ class DateTimeWidget(Widget):
("list", "list")], ("list", "list")],
size=1) size=1)
default_timezone = fields.ListField('default_timezone',
title="Default Timezone",
description=(
"The default timezone display when inputing a new date"),
default="GMT",
items=gmt_timezones,
required=1,
size=1)
input_order = fields.ListField('input_order', input_order = fields.ListField('input_order',
title="Input order", title="Input order",
description=( description=(
...@@ -1404,8 +1415,8 @@ class DateTimeWidget(Widget): ...@@ -1404,8 +1415,8 @@ class DateTimeWidget(Widget):
property_names = Widget.property_names +\ property_names = Widget.property_names +\
['default_now', 'date_separator', 'time_separator', ['default_now', 'date_separator', 'time_separator',
'input_style', 'input_order', 'date_only', 'input_style', 'input_order', 'date_only',
'ampm_time_style', 'timezone_style', 'hide_day', 'ampm_time_style', 'timezone_style', 'default_timezone',
'hidden_day_is_last_day'] 'hide_day', 'hidden_day_is_last_day']
def getInputOrder(self, field): def getInputOrder(self, field):
input_order = field.get_value('input_order') input_order = field.get_value('input_order')
...@@ -1463,7 +1474,7 @@ class DateTimeWidget(Widget): ...@@ -1463,7 +1474,7 @@ class DateTimeWidget(Widget):
hour = None hour = None
minute = None minute = None
ampm = None ampm = None
timezone = None timezone = field.get_value("default_timezone")
if isinstance(value, DateTime): if isinstance(value, DateTime):
year = "%04d" % value.year() year = "%04d" % value.year()
month = "%02d" % value.month() month = "%02d" % value.month()
......
...@@ -280,6 +280,7 @@ class SerializeTestCase(unittest.TestCase): ...@@ -280,6 +280,7 @@ class SerializeTestCase(unittest.TestCase):
request.update(default_values) request.update(default_values)
request.update( {'field_input_style': 'list', request.update( {'field_input_style': 'list',
'field_input_order': 'mdy', 'field_input_order': 'mdy',
'field_default_timezone': 'GMT',
'field_date_only': '', 'field_date_only': '',
'field_css_class': 'test_css', 'field_css_class': 'test_css',
'field_time_separator': '$', 'field_time_separator': '$',
......
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