Commit e62563a8 authored by Jérome Perrin's avatar Jérome Perrin

2008-03-18 jerome

Integrate romain's planning box for organisations.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20022 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f90f77eb
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_button</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>icon</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>planning_task_list</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>60.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Planning</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/Organisation_viewPlanning</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${portal_url}/images/planningbox.png</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="BaseDomain" module="Products.ERP5Type.Document.BaseDomain"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_count</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_folder_handler</string> </key>
<value> <string>CMFBTreeFolderHandler</string> </value>
</item>
<item>
<key> <string>_identity_criterion</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_mt_index</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_range_criterion</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>_tree</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Returns persons related by subordination to this organisation.</string> </value>
</item>
<item>
<key> <string>domain_generator_method_id</string> </key>
<value> <string>Organisation_generateSubordinationDomain</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>organisation_subordination_domain</string> </value>
</item>
<item>
<key> <string>last_id</string> </key>
<value> <string>289</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Base Domain</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Organisation Person</string> </value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>BTrees.Length</string>
<string>Length</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle> <int>0</int> </pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<tuple>
<string>BTrees.OOBTree</string>
<string>OOBTree</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<tuple>
<tuple>
<string>BTrees.OOBTree</string>
<string>OOBTree</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<none/>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</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>if depth != 0:\n
return []\n
\n
request = context.REQUEST\n
object_path = request.get(\'object_path\')\n
if object_path is None:\n
# Sometimes the object_path not comes with the request, when you edit for example.\n
object_path = request.get(\'URL1\').split(\'/\')[-1]\n
\n
domain_list = []\n
organisation = context.organisation_module.restrictedTraverse(object_path)\n
for person in organisation.getSubordinationRelatedValueList(\n
portal_type=\'Person\', checked_permission=\'View\'):\n
domain = parent.generateTempDomain(id=person.getId())\n
domain.edit(title = person.getTitle(),\n
membership_criterion_base_category = (\'source\', \'destination\'), \n
membership_criterion_category = (person.getRelativeUrl(),),\n
domain_generator_method_id = script.id,\n
uid = person.getUid())\n
\n
domain_list.append(domain)\n
\n
return domain_list\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>_params</string> </key>
<value> <string>depth, parent, **kw</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>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>depth</string>
<string>parent</string>
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>request</string>
<string>object_path</string>
<string>None</string>
<string>_getitem_</string>
<string>domain_list</string>
<string>organisation</string>
<string>_getiter_</string>
<string>person</string>
<string>domain</string>
<string>script</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Organisation_generateSubordinationDomain</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</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>result_list = []\n
\n
for person in context.getSubordinationRelatedValueList(portal_type=\'Person\',\n
checked_permission="View"):\n
result_list.extend(person.Person_getAvailableTimeMovementList(**kw))\n
\n
return result_list\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>_lazy_compilation</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</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>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>kw</string>
<string>result_list</string>
<string>_getiter_</string>
<string>_getattr_</string>
<string>context</string>
<string>person</string>
<string>_apply_</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Organisation_getAvailableTimeMovementList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</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>movement_list = []\n
organisation = context\n
\n
for person in organisation.getSubordinationRelatedValueList(portal_type=\'Person\',\n
checked_permission="View"):\n
movement_list.extend(person.Person_getTaskMovementHistoryList(**kw))\n
\n
return movement_list\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>_lazy_compilation</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</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>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>kw</string>
<string>movement_list</string>
<string>context</string>
<string>organisation</string>
<string>_getiter_</string>
<string>_getattr_</string>
<string>person</string>
<string>_apply_</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Organisation_getTaskMovementHistoryList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<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/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>Base_editUnrestricted</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>enctype</string> </key>
<value> <string>multipart/form-data</string> </value>
</item>
<item>
<key> <string>group_list</string> </key>
<value>
<list>
<string>bottom</string>
</list>
</value>
</item>
<item>
<key> <string>groups</string> </key>
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<value>
<list>
<string>planning_box</string>
</list>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Organisation_viewPlanning</string> </value>
</item>
<item>
<key> <string>method</string> </key>
<value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>form_report</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Planning</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PlanningBox" module="Products.ERP5Form.PlanningBox"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>planning_box</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>Input is required but no input given.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>color_script</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_botleft</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_botright</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_center</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_tooltip</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_topleft</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_topright</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>js_enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>lane_root_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>list_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>report_axis_groups</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>report_root_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>round_script</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>second_layer_list_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_border_width_left</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_header_height</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_planning_height</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_planning_width</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_x_axis_height</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_x_axis_space</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_y_axis_space</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_y_axis_width</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>split_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>stat_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title_line</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>vertical_view</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>x_axis_position</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>x_start_bloc</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>x_stop_bloc</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>y_axis_position</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>y_size_block</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>color_script</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_botleft</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_botright</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_center</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_tooltip</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_topleft</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_topright</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>js_enabled</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>lane_root_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>list_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>report_axis_groups</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>report_root_list</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>round_script</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>second_layer_list_method</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_border_width_left</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_header_height</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_planning_height</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_planning_width</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_x_axis_height</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_x_axis_space</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_y_axis_space</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size_y_axis_width</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>split_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>stat_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title_line</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>vertical_view</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>x_axis_position</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>x_start_bloc</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>x_stop_bloc</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>y_axis_position</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>y_size_block</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>calendar_view</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>color_script</string> </key>
<value> <string>TaskMovement_getSimulationStateColorText</string> </value>
</item>
<item>
<key> <string>constraint_method</string> </key>
<value> <string>SET_DHTML</string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>delimiter</string> </key>
<value> <int>5</int> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>group_bloc_method</string> </key>
<value> <string>getSource</string> </value>
</item>
<item>
<key> <string>group_bloc_property</string> </key>
<value> <string>source</string> </value>
</item>
<item>
<key> <string>height_axis_x</string> </key>
<value> <int>50</int> </value>
</item>
<item>
<key> <string>height_global_div</string> </key>
<value> <int>800</int> </value>
</item>
<item>
<key> <string>height_header</string> </key>
<value> <int>50</int> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>info_botleft</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_botright</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_center</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_tooltip</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_topleft</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>info_topright</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>js_enabled</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>lane_root_list</string> </key>
<value>
<list>
<tuple>
<string>base_day_domain</string>
<string>Day</string>
</tuple>
<tuple>
<string>base_week_domain</string>
<string>Week</string>
</tuple>
<tuple>
<string>base_month_domain</string>
<string>Month</string>
</tuple>
<tuple>
<string>base_year_domain</string>
<string>Year</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>list_method</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item>
<key> <string>main_axis_groups</string> </key>
<value> <int>10</int> </value>
</item>
<item>
<key> <string>meta_types</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>portal_types</string> </key>
<value>
<list>
<tuple>
<string>Simulation Movement</string>
<string>Simulation Movement</string>
</tuple>
<tuple>
<string>Task Line</string>
<string>Task Line</string>
</tuple>
<tuple>
<string>Task Report Line</string>
<string>Task Report Line</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>report_axis_groups</string> </key>
<value> <int>10</int> </value>
</item>
<item>
<key> <string>report_root_list</string> </key>
<value>
<list>
<tuple>
<string>organisation_subordination_domain</string>
<string>Persons</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>report_tree</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>round_script</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>sec_axis_script</string> </key>
<value> <string>Planning_generateDateZoomAxis</string> </value>
</item>
<item>
<key> <string>second_layer_list_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>security_index</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>selection_name</string> </key>
<value> <string>organisation_subordination_planning_selection</string> </value>
</item>
<item>
<key> <string>size_border_width_left</string> </key>
<value> <int>10</int> </value>
</item>
<item>
<key> <string>size_header_height</string> </key>
<value> <int>50</int> </value>
</item>
<item>
<key> <string>size_planning_height</string> </key>
<value> <int>800</int> </value>
</item>
<item>
<key> <string>size_planning_width</string> </key>
<value> <int>780</int> </value>
</item>
<item>
<key> <string>size_x_axis_height</string> </key>
<value> <int>40</int> </value>
</item>
<item>
<key> <string>size_x_axis_space</string> </key>
<value> <int>5</int> </value>
</item>
<item>
<key> <string>size_y_axis_space</string> </key>
<value> <int>8</int> </value>
</item>
<item>
<key> <string>size_y_axis_width</string> </key>
<value> <int>170</int> </value>
</item>
<item>
<key> <string>sort</string> </key>
<value>
<list>
<tuple>
<string>start_date</string>
<string>start_date</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>space_line</string> </key>
<value> <int>10</int> </value>
</item>
<item>
<key> <string>split_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>stat_method</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Planning</string> </value>
</item>
<item>
<key> <string>title_line</string> </key>
<value> <string>getTitle</string> </value>
</item>
<item>
<key> <string>use_date_zoom</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>vertical_view</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>whitespace_preserve</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>width_line</string> </key>
<value> <int>1000</int> </value>
</item>
<item>
<key> <string>x_axis_position</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>x_axis_script_id</string> </key>
<value> <string>genXaxis</string> </value>
</item>
<item>
<key> <string>x_range</string> </key>
<value> <string>month</string> </value>
</item>
<item>
<key> <string>x_start_bloc</string> </key>
<value> <string>start_date</string> </value>
</item>
<item>
<key> <string>x_stop_bloc</string> </key>
<value> <string>stop_date</string> </value>
</item>
<item>
<key> <string>y_axis_position</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>y_axis_width</string> </key>
<value> <int>200</int> </value>
</item>
<item>
<key> <string>y_range</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>y_size_block</string> </key>
<value> <string>start_date</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.portal_selections.getSelectionParamsFor(field.get_value(\'selection_name\')).get(\'lane_path\', \'base_month_domain\') in [\'base_day_domain\', \'base_week_domain\']</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: test(context.portal_selections.getSelectionParamsFor(field.get_value(\'selection_name\')).get(\'lane_path\', \'base_month_domain\') in [\'base_day_domain\', \'base_week_domain\'], \'Organisation_getAvailableTimeMovementList\', \'\')</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<tuple>
<global name="Method" module="Products.Formulator.MethodField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>Organisation_getTaskMovementHistoryList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</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 encoding="cdata"><![CDATA[
self = context\n
kw = {}\n
\n
# This script has proxy role to access Assignments here\n
assignment_list = self.contentValues(portal_type=\'Assignment\')\n
calendar_uid_list = []\n
for assignment in assignment_list:\n
calendar_uid_list.extend(assignment.getCalendarUidList())\n
node = [self.getUid()] + calendar_uid_list\n
\n
default_source = context.getRelativeUrl()\n
\n
portal_simulation = self.portal_simulation\n
\n
portal_type = []\n
resource = None\n
src__ = 0\n
\n
# if (from_date is None) or (to_date is None):\n
# zoom_level=context.REQUEST.get(\'zoom_level\', \'30\')\n
# from_date, to_date = self.planning_validate_date_list(DateTime(), zoom_level)\n
\n
# Calculate portal_type\n
if portal_type == []:\n
portal_type = self.getPortalCalendarPeriodTypeList()\n
\n
simulation_state = self.getPortalCurrentInventoryStateList() + \\\n
self.getPortalTransitInventoryStateList() + \\\n
self.getPortalReservedInventoryStateList()\n
\n
movement_list = context.portal_simulation.getMovementHistoryList(\n
node_uid=node,\n
portal_type=portal_type,\n
simulation_state=simulation_state, \n
to_date=to_date, \n
from_date=from_date,\n
sort_on = ((\'stock.date\', \'ascending\'),),\n
omit_mirror_date=0,\n
)\n
\n
result_list = []\n
\n
date_list = [DateTime(\'1007/03/01\'), DateTime(\'1007/03/01\')]\n
quantity_list = [-1]\n
\n
def flush_list():\n
start_date = date_list[0]\n
for k in range(1, len(date_list)):\n
stop_date = date_list[k]\n
quantity = quantity_list[k-1]\n
if quantity > 0:\n
\n
mov = mvt_list[k-1].asContext(\n
start_date = start_date,\n
stop_date = stop_date,\n
)\n
mov.edit(source = default_source)\n
result_list.append(mov)\n
start_date = stop_date\n
\n
\n
for movement in movement_list:\n
default_range = movement.stop_date - movement.start_date\n
next_start_date = movement.date\n
next_stop_date = movement.date+default_range\n
next_quantity = movement.total_quantity\n
next_relative_url = movement.relative_url\n
\n
if next_start_date >= date_list[-1]:\n
flush_list()\n
date_list = [next_start_date, next_stop_date]\n
quantity_list = [next_quantity]\n
mvt_list = [movement]\n
else:\n
\n
i = 0\n
len_date_list = len(date_list)\n
while i < len_date_list:\n
current_date = date_list[i]\n
if next_start_date < current_date:\n
break\n
i += 1\n
j = i\n
while j < len_date_list:\n
current_date = date_list[j]\n
if next_stop_date < current_date:\n
break\n
j += 1\n
\n
# Insert new quantities\n
if i == 0:\n
new_quantity_list = [next_quantity]\n
new_mvt_list = [movement]\n
else:\n
new_quantity_list = quantity_list[:i]\n
new_mvt_list = mvt_list[:i]\n
\n
if i == j:\n
if (next_quantity <= 0) or (quantity_list[i-1] <= 0):\n
new_quantity_list.append(-1)\n
else:\n
new_quantity_list.append(1)\n
new_mvt_list.append(movement)\n
else:\n
for k in range(max(i, 1), min(j, len_date_list-1)+1):\n
if (next_quantity <= 0) or (quantity_list[k-1] <= 0):\n
new_quantity_list.append(-1)\n
else:\n
new_quantity_list.append(1)\n
new_mvt_list.append(mvt_list[k-1])\n
\n
if j < len_date_list:\n
new_quantity_list.extend(quantity_list[j-1:])\n
new_mvt_list.extend(mvt_list[j-1:])\n
else:\n
new_quantity_list.append(next_quantity)\n
new_mvt_list.append(movement)\n
\n
quantity_list = new_quantity_list\n
mvt_list = new_mvt_list\n
date_list.insert(j, next_stop_date)\n
date_list.insert(i, next_start_date)\n
\n
flush_list()\n
\n
return result_list\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>_lazy_compilation</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>to_date=None, from_date=None, **kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Auditor</string>
<string>Manager</string>
</tuple>
</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>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>to_date</string>
<string>from_date</string>
<string>kw</string>
<string>context</string>
<string>self</string>
<string>_getattr_</string>
<string>assignment_list</string>
<string>calendar_uid_list</string>
<string>_getiter_</string>
<string>assignment</string>
<string>node</string>
<string>default_source</string>
<string>portal_simulation</string>
<string>portal_type</string>
<string>None</string>
<string>resource</string>
<string>src__</string>
<string>simulation_state</string>
<string>movement_list</string>
<string>result_list</string>
<string>DateTime</string>
<string>date_list</string>
<string>quantity_list</string>
<string>mvt_list</string>
<string>flush_list</string>
<string>movement</string>
<string>default_range</string>
<string>next_start_date</string>
<string>next_stop_date</string>
<string>next_quantity</string>
<string>next_relative_url</string>
<string>_getitem_</string>
<string>i</string>
<string>len</string>
<string>len_date_list</string>
<string>current_date</string>
<string>_inplacevar_</string>
<string>j</string>
<string>new_quantity_list</string>
<string>new_mvt_list</string>
<string>range</string>
<string>max</string>
<string>min</string>
<string>k</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Person_getAvailableTimeMovementList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</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>person = context\n
\n
acceptable_state_list = context.getPortalFutureInventoryStateList() + \\\n
context.getPortalReservedInventoryStateList() + \\\n
context.getPortalTransitInventoryStateList() + \\\n
context.getPortalCurrentInventoryStateList()\n
\n
movement_list = context.portal_simulation.getMovementHistoryList(\n
node_uid=person.getUid(),\n
portal_type=portal_type,\n
simulation_state=acceptable_state_list, \n
to_date=to_date, \n
from_date=from_date,\n
omit_mirror_date=0,\n
)\n
\n
\n
# XXX It is a bad idea to return order_value or delivery_value,\n
# because same object can be displayed multiple time in some cases\n
\n
return_list = []\n
\n
# Normally, simulation movement should only have 1 order value\n
for mvt_obj in movement_list:\n
# XXX Can\'t we use a brain instead ?\n
if mvt_obj.portal_type == "Simulation Movement":\n
obj = mvt_obj.getOrderValue() \n
if obj is not None:\n
mvt_obj = obj\n
return_list.append(mvt_obj)\n
\n
return return_list\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>_lazy_compilation</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>to_date=None, from_date=None, portal_type=None, **kw</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>3</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>to_date</string>
<string>from_date</string>
<string>portal_type</string>
<string>kw</string>
<string>context</string>
<string>person</string>
<string>_getattr_</string>
<string>acceptable_state_list</string>
<string>movement_list</string>
<string>return_list</string>
<string>_getiter_</string>
<string>mvt_obj</string>
<string>obj</string>
<string>None</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
<none/>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Person_getTaskMovementHistoryList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</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>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>_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>TaskMovement_getSimulationStateColorText</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2008-03-18 jerome
Integrate romain's planning box for organisations.
2007-10-22 romain
Initial import.
\ No newline at end of file
316
\ No newline at end of file
317
\ No newline at end of file
......@@ -8,6 +8,7 @@ Leave Request Module | view
Leave Request Period | periodicity_view
Leave Request Period | view
Leave Request | view
Organisation | planning_task_list
Presence Request Module | view
Presence Request Period | periodicity_view
Presence Request Period | view
......
portal_domains/organisation_subordination_domain
\ 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