Commit cba992fc authored by Rafael Monnerat's avatar Rafael Monnerat

Removed hardcoded portal types from generic script

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17739 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b2a5af8
...@@ -74,10 +74,8 @@ ...@@ -74,10 +74,8 @@
# - it\'s a part of a block \n # - it\'s a part of a block \n
# - the object is one Calendar Period\n # - the object is one Calendar Period\n
\n \n
frozen_portal_type_list = context.getPortalCalendarPeriodTypeList() + (\'Simulation Movement\',\'Presence Request Period\')\n
\n \n
return (not context.portal_membership.checkPermission(\'Modify portal content\', block.parent_activity.object)) or \\\n return (not context.portal_membership.checkPermission(\'Modify portal content\', block.parent_activity.object)) or \\\n
(block.parent_activity.object.getPortalType() in frozen_portal_type_list ) or \\\n
(not ((block.position_x.relative_begin > 0) and \\\n (not ((block.position_x.relative_begin > 0) and \\\n
(block.position_x.relative_end < 1) and \\\n (block.position_x.relative_end < 1) and \\\n
(block.property_dict[\'stat\'] == 0)))\n (block.property_dict[\'stat\'] == 0)))\n
...@@ -134,7 +132,6 @@ return (not context.portal_membership.checkPermission(\'Modify portal content\', ...@@ -134,7 +132,6 @@ return (not context.portal_membership.checkPermission(\'Modify portal content\',
<string>block</string> <string>block</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>frozen_portal_type_list</string>
<string>_getitem_</string> <string>_getitem_</string>
</tuple> </tuple>
</value> </value>
......
581 582
\ 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