[Erp5-report] r38821 fabien - in /experimental/bt5/erp5_credential: SkinTemplateItem/portal...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Oct 1 09:55:45 CEST 2010


Author: fabien
Date: Fri Oct  1 09:55:25 2010
New Revision: 38821

URL: http://svn.erp5.org?rev=38821&view=rev
Log:
use getCategoryChildRelativeUrlList instead of search folder to get the category list.

Modified:
    experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_updatePersonAssignment.xml
    experimental/bt5/erp5_credential/bt/revision

Modified: experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_updatePersonAssignment.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_updatePersonAssignment.xml?rev=38821&r1=38820&r2=38821&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_updatePersonAssignment.xml [utf8] (original)
+++ experimental/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/CredentialRequest_updatePersonAssignment.xml [utf8] Fri Oct  1 09:55:25 2010
@@ -62,8 +62,8 @@ organisation = context.getDestinationDec
 \n
 assignment_configuration = {}\n
 #Look on current assignement\n
-old_role_list = [x.getId() for x in context.portal_categories.role.searchFolder()]\n
-for role in context.getRoleList():\n
+old_role_list = context.portal_categories.role.getCategoryChildRelativeUrlList()\n
+for role in context.getRoleList(base=1):\n
   has_assignment = person.countFolder(portal_type=\'Assignment\',\n
                                                role = role,\n
                                                validation_state = \'open\')\n
@@ -154,11 +154,8 @@ for role,create_assingment in assignment
                             <string>person</string>
                             <string>organisation</string>
                             <string>assignment_configuration</string>
-                            <string>append</string>
-                            <string>$append0</string>
-                            <string>_getiter_</string>
-                            <string>x</string>
                             <string>old_role_list</string>
+                            <string>_getiter_</string>
                             <string>role</string>
                             <string>has_assignment</string>
                             <string>bool</string>

Modified: experimental/bt5/erp5_credential/bt/revision
URL: http://svn.erp5.org/experimental/bt5/erp5_credential/bt/revision?rev=38821&r1=38820&r2=38821&view=diff
==============================================================================
--- experimental/bt5/erp5_credential/bt/revision [utf8] (original)
+++ experimental/bt5/erp5_credential/bt/revision [utf8] Fri Oct  1 09:55:25 2010
@@ -1 +1 @@
-233
\ No newline at end of file
+235
\ No newline at end of file




More information about the Erp5-report mailing list