Commit 2e6647d8 authored by Yusei Tahara's avatar Yusei Tahara

2008-09-27 yusei

* Added checked_permission argument to contentValues method in
RequirementDocument_getOrphanedRequirementUidList and RequirementDocument_getProjectCoverageList.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23862 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b115277b
......@@ -55,9 +55,9 @@
<key> <string>_body</string> </key>
<value> <string>result = []\n
\n
for r in context.contentValues(filter={\'portal_type\': \'Requirement\'}):\n
for r in context.contentValues(filter={\'portal_type\': \'Requirement\'}, checked_permission=\'View\'):\n
if not r.getRequirementRelatedValueList():\n
if not r.contentValues(filter={\'portal_type\': \'Requirement\'}):\n
if not r.contentValues(filter={\'portal_type\': \'Requirement\'}, checked_permission=\'View\'):\n
result.append(r.getUid())\n
result.extend(r.RequirementDocument_getOrphanedRequirementUidList())\n
\n
......
......@@ -55,9 +55,9 @@
<key> <string>_body</string> </key>
<value> <string>result = []\n
\n
for r in context.contentValues(portal_type= "Requirement", sort_on = ((\'int_index\',\'ascending\', \'int\'),)):\n
for r in context.contentValues(portal_type= "Requirement", sort_on = ((\'int_index\',\'ascending\', \'int\'),), checked_permission=\'View\'):\n
if not r.getRequirementRelatedValueList():\n
if not r.contentValues(portal_type= "Requirement", sort_on = ((\'int_index\',\'ascending\', \'int\'),)):\n
if not r.contentValues(portal_type= "Requirement", sort_on = ((\'int_index\',\'ascending\', \'int\'),), checked_permission=\'View\'):\n
result.append({\'requirement_reference\': r.Requirement_getDefaultReference(),\n
\'requirement_title\': r.getTitle(),\n
\'project_reference\': \'Not covered\',\n
......
2008-09-27 yusei
* Added checked_permission argument to contentValues method in
RequirementDocument_getOrphanedRequirementUidList and RequirementDocument_getProjectCoverageList.
2008-09-24 yusei
* Fixed a bug in Requirement_generateRequirements.
......
607
\ No newline at end of file
608
\ 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