Commit 9991a32b authored by Rafael Monnerat's avatar Rafael Monnerat

Added Default Color configuration for Planning Box at Task Report Module

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16791 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 65b3d209
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string># Define the color using the simulation state\n
if task.getPortalType() in task.getPortalCalendarPeriodTypeList():\n
return \'#d3d3d3\'\n
\n
simulation_method = getattr(task, \'getSimulationState\', None)\n
if simulation_method is None:\n
return \'#D1E8FF\'\n
\n
simulation_state = simulation_method()\n
\n
color_dict = {\n
\'draft\': \'#a7d7ae\',\n
\'planned\': \'#ffff00\',\n
\'ordered\': \'#ff8e56\',\n
\'confirmed\': \'#ff0000\',\n
\'started\': \'#ff00ff\',\n
\'stopped\': \'#00b8ff\',\n
\'delivered\': \'#3deb3d\',\n
}\n
return color_dict.get(simulation_state, \'#D1E8FF\')\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>task=None</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>task</string>
<string>_getattr_</string>
<string>getattr</string>
<string>None</string>
<string>simulation_method</string>
<string>simulation_state</string>
<string>color_dict</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Movement_getSimulationStateColorText</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -47,7 +47,7 @@
</item>
<item>
<key> <string>action</string> </key>
<value> <string></string> </value>
<value> <string>Base_edit</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -98,7 +98,7 @@
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_dialog</string> </value>
<value> <string>form_view</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
......
......@@ -379,7 +379,7 @@
</item>
<item>
<key> <string>color_script</string> </key>
<value> <string></string> </value>
<value> <string>Movement_getSimulationStateColorText</string> </value>
</item>
<item>
<key> <string>constraint_method</string> </key>
......@@ -633,7 +633,7 @@
</item>
<item>
<key> <string>y_size_block</string> </key>
<value> <string>quantity</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>y_unity</string> </key>
......
......@@ -3,8 +3,11 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
<tuple>
<string>Products.ERP5Form.Form</string>
<string>ERP5Form</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
......
306
\ No newline at end of file
307
\ No newline at end of file
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