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
for category in category_list:\n
domain = parent.generateTempDomain(id = \'sub\' + category.getId() )\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
domain_generator_method_id = script.id,\n
uid = category.getUid())\n
......
......@@ -69,17 +69,9 @@
<item>
<key> <string>_body</string> </key>
<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
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>
</item>
<item>
......@@ -102,7 +94,7 @@ return return_list\n
</item>
<item>
<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>
<key> <string>errors</string> </key>
......@@ -122,25 +114,15 @@ return return_list\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>3</int> </value>
<value> <int>0</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>_getattr_</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>
</value>
</item>
......@@ -152,11 +134,7 @@ return return_list\n
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
<none/>
<none/>
</tuple>
<none/>
</value>
</item>
<item>
......
319
\ No newline at end of file
320
\ 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