diff --git a/bt5/erp5_wizard/SkinTemplateItem/portal_skins/erp5_wizard/Person_createAssignment.xml b/bt5/erp5_wizard/SkinTemplateItem/portal_skins/erp5_wizard/Person_createAssignment.xml new file mode 100644 index 0000000000000000000000000000000000000000..1cc03ed7a2773c574df32c12e75dcde5285297f3 --- /dev/null +++ b/bt5/erp5_wizard/SkinTemplateItem/portal_skins/erp5_wizard/Person_createAssignment.xml @@ -0,0 +1,147 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </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>group = kw.get(\'group\')\n +function = kw.get(\'function\')\n +activity = kw.get(\'activity\')\n +title = kw.get(\'title\')\n +description = kw.get(\'description\')\n +start_date = kw.get(\'start_date\')\n +stop_date = kw.get(\'stop_date\')\n +\n +if None not in [start_date, stop_date, group, function]:\n + assignment = context.newContent(portal_type=\'Assignment\', **kw)\n + assignment.open()\n + return assignment\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>**kw</string> </value> + </item> + <item> + <key> <string>_proxy_roles</string> </key> + <value> + <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>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>kw</string> + <string>_getattr_</string> + <string>group</string> + <string>function</string> + <string>activity</string> + <string>title</string> + <string>description</string> + <string>start_date</string> + <string>stop_date</string> + <string>None</string> + <string>_apply_</string> + <string>context</string> + <string>assignment</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>Person_createAssignment</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_wizard/bt/revision b/bt5/erp5_wizard/bt/revision index 7f3a7cc66c28f7ce9fa4e69a9fcc5e8f03bbad1b..05b9b66ffd47f842c719776133f725c506144461 100644 --- a/bt5/erp5_wizard/bt/revision +++ b/bt5/erp5_wizard/bt/revision @@ -1 +1 @@ -161 \ No newline at end of file +162 \ No newline at end of file