Commit 56d1c447 authored by Rafael Monnerat's avatar Rafael Monnerat

Modified Domain, use edition with the previous configuration makes the edition inconsistent.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16893 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 50c9168a
...@@ -78,13 +78,13 @@ domain_list = []\n ...@@ -78,13 +78,13 @@ domain_list = []\n
if depth == 0:\n if depth == 0:\n
category_list = [ context.task_report_module.getObject() ] \n category_list = [ context.task_report_module.getObject() ] \n
\n \n
elif depth == 1:\n # XXX this is usefull but Breaks the edition\n
category_list = context.portal_selections.getSelectionValueList(context=context,\n #elif depth == 1:\n
selection_name= \'task_report_selection\')\n # category_list = context.portal_selections.getSelectionValueList(context=context,\n
# selection_name= \'task_report_selection\')\n
\n
\n \n
else:\n else:\n
#url = category.getProperty(\'membership_criterion_category\')\n
#category_list = url.searchFolder()\n
return domain_list\n return domain_list\n
\n \n
for category in category_list:\n for category in category_list:\n
......
...@@ -68,16 +68,16 @@ ...@@ -68,16 +68,16 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>node_list = context.portal_selections.getSelectionValueList(context=context, \n <value> <string># Get the Object showed at List Box \n
node_list = 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 \n
\n
return_list = [ i.asContext() for i in node_list ]\n return_list = [ i.asContext() for i in node_list ]\n
\n \n
for j in return_list:\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 j.edit(source=context.task_report_module.getRelativeUrl())\n
j.edit(destination=j.getRelativeUrl())\n
\n \n
return return_list\n return return_list\n
</string> </value> </string> </value>
......
313 315
\ 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