[Erp5-report] r17739 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Nov 22 06:28:16 CET 2007


Author: rafael
Date: Thu Nov 22 06:28:15 2007
New Revision: 17739

URL: http://svn.erp5.org?rev=17739&view=rev
Log:
Removed hardcoded portal types from generic script

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/PlanningBox_isFrozenBlock.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/PlanningBox_isFrozenBlock.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/PlanningBox_isFrozenBlock.xml?rev=17739&r1=17738&r2=17739&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/PlanningBox_isFrozenBlock.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/PlanningBox_isFrozenBlock.xml Thu Nov 22 06:28:15 2007
@@ -74,10 +74,8 @@
 # - it\'s a part of a block \n
 # - the object is one Calendar Period\n
 \n
-frozen_portal_type_list = context.getPortalCalendarPeriodTypeList() + (\'Simulation Movement\',\'Presence Request Period\')\n
 \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
                    (block.position_x.relative_end < 1) and \\\n
                    (block.property_dict[\'stat\'] == 0)))\n
@@ -134,7 +132,6 @@
                             <string>block</string>
                             <string>_getattr_</string>
                             <string>context</string>
-                            <string>frozen_portal_type_list</string>
                             <string>_getitem_</string>
                           </tuple>
                         </value>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=17739&r1=17738&r2=17739&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Thu Nov 22 06:28:15 2007
@@ -1,1 +1,1 @@
-581
+582




More information about the Erp5-report mailing list