Commit 5daf09b7 authored by Rafael Monnerat's avatar Rafael Monnerat

Improved Task Report Module Domain in a clean way.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16914 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 08cb6560
...@@ -90,7 +90,7 @@ else:\n ...@@ -90,7 +90,7 @@ else:\n
for category in category_list:\n for category in category_list:\n
domain = parent.generateTempDomain(id = \'sub\' + category.getId() )\n domain = parent.generateTempDomain(id = \'sub\' + category.getId() )\n
domain.edit(title = category.getTitle(),\n domain.edit(title = category.getTitle(),\n
membership_criterion_base_category = (\'source\', \'destination\' ), \n membership_criterion_base_category = (\'parent\', ), \n
membership_criterion_category = (category.getRelativeUrl(),),\n membership_criterion_category = (category.getRelativeUrl(),),\n
domain_generator_method_id = script.id,\n domain_generator_method_id = script.id,\n
uid = category.getUid())\n uid = category.getUid())\n
......
...@@ -69,17 +69,9 @@ ...@@ -69,17 +69,9 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string># Get the Object showed at List Box \n <value> <string># Get the Object showed at List Box \n
node_list = context.portal_selections.getSelectionValueList(context=context, \n return context.portal_selections.getSelectionValueList(context=context, \n
REQUEST=context.REQUEST, \n REQUEST=context.REQUEST, \n
selection_name=\'task_report_selection\')\n selection_name=\'task_report_selection\')\n
\n
return_list = [ i.asContext() for i in node_list ]\n
\n
for j in return_list:\n
# Creates the relation just for Planning Box Presentation\n
j.edit(source=context.task_report_module.getRelativeUrl())\n
\n
return return_list\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -102,7 +94,7 @@ return return_list\n ...@@ -102,7 +94,7 @@ return return_list\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>to_date=None, from_date=None, portal_type=None, **kw</string> </value> <value> <string>**kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -122,25 +114,15 @@ return return_list\n ...@@ -122,25 +114,15 @@ return return_list\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>3</int> </value> <value> <int>0</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>to_date</string>
<string>from_date</string>
<string>portal_type</string>
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>node_list</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>i</string>
<string>return_list</string>
<string>j</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -152,11 +134,7 @@ return return_list\n ...@@ -152,11 +134,7 @@ return return_list\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<tuple> <none/>
<none/>
<none/>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
319 320
\ No newline at end of file \ 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