[Erp5-report] r38303 jerome - /erp5/trunk/products/CMFCategory/Category.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Sep 13 15:20:09 CEST 2010


Author: jerome
Date: Mon Sep 13 15:20:02 2010
New Revision: 38303

URL: http://svn.erp5.org?rev=38303&view=rev
Log:
passthrough **kw to support sorting and filtering 

Modified:
    erp5/trunk/products/CMFCategory/Category.py

Modified: erp5/trunk/products/CMFCategory/Category.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFCategory/Category.py?rev=38303&r1=38302&r2=38303&view=diff
==============================================================================
--- erp5/trunk/products/CMFCategory/Category.py [utf8] (original)
+++ erp5/trunk/products/CMFCategory/Category.py [utf8] Mon Sep 13 15:20:02 2010
@@ -353,7 +353,8 @@ class Category(Folder):
     # List names recursively
     security.declareProtected(Permissions.AccessContentsInformation,
                                                     'getCategoryChildRelativeUrlList')
-    def getCategoryChildRelativeUrlList(self, base='', recursive=1, checked_permission=None):
+    def getCategoryChildRelativeUrlList(self, base='', recursive=1,
+                                        checked_permission=None, **kw):
       """
           List the path of this category and all its subcategories.
 
@@ -368,7 +369,8 @@ class Category(Folder):
         base = self.getBaseCategoryId() + '/' # Make sure we get a meaningful base
       url_list = []
       for value in self.getCategoryChildValueList(recursive=recursive,
-                                                  checked_permission=checked_permission):
+                                                  checked_permission=checked_permission,
+                                                  **kw):
         url_list.append(base + value.getRelativeUrl())
       return url_list
 




More information about the Erp5-report mailing list