[Erp5-report] r16823 - /erp5/trunk/products/ERP5Type/Core/Folder.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Oct 4 15:18:41 CEST 2007


Author: jerome
Date: Thu Oct  4 15:18:41 2007
New Revision: 16823

URL: http://svn.erp5.org?rev=16823&view=rev
Log:
remove docstrings on contentValues and objectValues, otherwise it's possible to call them in the URL


Modified:
    erp5/trunk/products/ERP5Type/Core/Folder.py

Modified: erp5/trunk/products/ERP5Type/Core/Folder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Core/Folder.py?rev=16823&r1=16822&r2=16823&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Core/Folder.py (original)
+++ erp5/trunk/products/ERP5Type/Core/Folder.py Thu Oct  4 15:18:41 2007
@@ -1369,9 +1369,9 @@
   def objectValues(self, spec=None, meta_type=None, portal_type=None,
                    sort_on=None, sort_order=None, base_id=None,
                    checked_permission=None, **kw):
-    """
-    Returns a list containing object contained in this folder.
-    """
+    # Returns list of objects contained in this folder.
+    #  (no docstring to prevent publishing)
+
     if meta_type is not None:
       spec = meta_type
     # when an object inherits from Folder after it was instanciated, it lacks
@@ -1408,10 +1408,8 @@
                              'contentValues' )
   def contentValues(self, spec=None, meta_type=None, portal_type=None,
                     sort_on=None, sort_order=None, checked_permission=None, **kw):
-    """
-    Returns a list containing object contained in this folder.
-    Filter objects with appropriate permissions (as in contentValues)
-    """
+    # Returns a list of documents contained in this folder.
+    # ( no docstring to prevent publishing )
     if meta_type is not None:
       spec = meta_type
     if portal_type is not None:




More information about the Erp5-report mailing list