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

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 19 12:00:20 CEST 2007


Author: romain
Date: Tue Jun 19 12:00:19 2007
New Revision: 14870

URL: http://svn.erp5.org?rev=14870&view=rev
Log:
Fix typo error in ERP5Type_getSecurityParentCategoryFromAssignment.

Make ERP5Type_asSecurityGroupId more readable.

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

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Type_asSecurityGroupId.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Type_asSecurityGroupId.xml?rev=14870&r1=14869&r2=14870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Type_asSecurityGroupId.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Type_asSecurityGroupId.xml Tue Jun 19 12:00:19 2007
@@ -157,7 +157,8 @@
 if user_list: return user_list\n
 \n
 # Compute the cartesian product and return the codes\n
-return filter(lambda x: x, map(lambda x: \'_\'.join(x), cartesianProduct(list_of_list)))\n
+# return filter(lambda x: x, map(lambda x: \'_\'.join(x), cartesianProduct(list_of_list)))\n
+return [\'_\'.join(x) for x in cartesianProduct(list_of_list) if x]\n
 </string> </value>
         </item>
         <item>
@@ -224,8 +225,9 @@
                             <string>user_name</string>
                             <string>category_code</string>
                             <string>AttributeError</string>
-                            <string>filter</string>
-                            <string>map</string>
+                            <string>append</string>
+                            <string>$append0</string>
+                            <string>x</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Type_getSecurityParentCategoryFromAssignment.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Type_getSecurityParentCategoryFromAssignment.xml?rev=14870&r1=14869&r2=14870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Type_getSecurityParentCategoryFromAssignment.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/ERP5Type_getSecurityParentCategoryFromAssignment.xml Tue Jun 19 12:00:19 2007
@@ -122,7 +122,7 @@
         for category_value in category_value_list:\n
           if category_value.getPortalType() == \'Category\':\n
             while category_value.getPortalType() == \'Category\':\n
-              category_dict.setdefault(base_category, []).append(\'category_value.getRelativeUrl())\n
+              category_dict.setdefault(base_category, []).append(category_value.getRelativeUrl())\n
               category_value = category_value.getParentValue()\n
           else:\n
             category_dict.setdefault(base_category, []).append(category_value.getRelativeUrl())\n
@@ -152,9 +152,7 @@
         <item>
             <key> <string>errors</string> </key>
             <value>
-              <tuple>
-                <string>EOL while scanning single-quoted string (Script (Python), line 53)</string>
-              </tuple>
+              <tuple/>
             </value>
         </item>
         <item>
@@ -169,12 +167,35 @@
                   <dictionary>
                     <item>
                         <key> <string>co_argcount</string> </key>
-                        <value> <int>0</int> </value>
+                        <value> <int>4</int> </value>
                     </item>
                     <item>
                         <key> <string>co_varnames</string> </key>
                         <value>
-                          <tuple/>
+                          <tuple>
+                            <string>base_category_list</string>
+                            <string>user_name</string>
+                            <string>object</string>
+                            <string>portal_type</string>
+                            <string>category_list</string>
+                            <string>_getattr_</string>
+                            <string>context</string>
+                            <string>person_module</string>
+                            <string>append</string>
+                            <string>$append0</string>
+                            <string>_getiter_</string>
+                            <string>x</string>
+                            <string>person_object_list</string>
+                            <string>len</string>
+                            <string>ConsistencyError</string>
+                            <string>_getitem_</string>
+                            <string>person_object</string>
+                            <string>assignment</string>
+                            <string>category_dict</string>
+                            <string>base_category</string>
+                            <string>category_value_list</string>
+                            <string>category_value</string>
+                          </tuple>
                         </value>
                     </item>
                   </dictionary>
@@ -185,7 +206,7 @@
         <item>
             <key> <string>func_defaults</string> </key>
             <value>
-              <tuple/>
+              <none/>
             </value>
         </item>
         <item>

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=14870&r1=14869&r2=14870&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Tue Jun 19 12:00:19 2007
@@ -1,1 +1,1 @@
-351
+352




More information about the Erp5-report mailing list