Commit 3b561743 authored by Romain Courteaud's avatar Romain Courteaud

Display all Task/Task Reports which are not strictly related to the Project/Project Line.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20058 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d8bfa738
...@@ -78,12 +78,22 @@ else:\n ...@@ -78,12 +78,22 @@ else:\n
\n \n
for category in category_list:\n for category in category_list:\n
domain = parent.generateTempDomain(id=\'sub%s\' % category.getId())\n domain = parent.generateTempDomain(id=\'sub%s\' % category.getId())\n
\n
membership_criterion_category = []\n
sub_category_list = [category]\n
while sub_category_list:\n
sub_category = sub_category_list.pop()\n
membership_criterion_category.append(\'source_project/%s\' % sub_category.getRelativeUrl())\n
sub_category_list.extend(sub_category.contentValues(portal_type=\'Project Line\'))\n
\n
domain.edit(title = category.getTitle(),\n domain.edit(title = category.getTitle(),\n
membership_criterion_base_category = (\'source_project\', ), \n membership_criterion_base_category = (\'source_project\', ),\n
membership_criterion_category = (\'source_project/%s\' % category.getRelativeUrl(),),\n membership_criterion_category = membership_criterion_category,\n
domain_generator_method_id = script.id,\n domain_generator_method_id = script.id,\n
parent_url=category.getRelativeUrl(),\n parent_url=category.getRelativeUrl(),\n
uid = category.getUid())\n uid = category.getUid())\n
\n
context.log(str(membership_criterion_category))\n
\n \n
domain_list.append(domain)\n domain_list.append(domain)\n
\n \n
...@@ -151,7 +161,11 @@ return domain_list\n ...@@ -151,7 +161,11 @@ return domain_list\n
<string>parent_object</string> <string>parent_object</string>
<string>category</string> <string>category</string>
<string>domain</string> <string>domain</string>
<string>membership_criterion_category</string>
<string>sub_category_list</string>
<string>sub_category</string>
<string>script</string> <string>script</string>
<string>str</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -254,10 +254,6 @@ ...@@ -254,10 +254,6 @@
<string>region</string> <string>region</string>
<string>Region</string> <string>Region</string>
</tuple> </tuple>
<tuple>
<string>validated_project_domain</string>
<string>Open Project</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -250,10 +250,6 @@ ...@@ -250,10 +250,6 @@
<string>region</string> <string>region</string>
<string>region</string> <string>region</string>
</tuple> </tuple>
<tuple>
<string>validated_project_domain</string>
<string>Open Project</string>
</tuple>
</list> </list>
</value> </value>
</item> </item>
......
447 448
\ 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