Commit cb9b3e36 authored by Jérome Perrin's avatar Jérome Perrin

remove docstrings on contentValues and objectValues, otherwise it's possible...

remove docstrings on contentValues and objectValues, otherwise it's possible to call them in the URL



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16823 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 706b0367
...@@ -1369,9 +1369,9 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn, ...@@ -1369,9 +1369,9 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn,
def objectValues(self, spec=None, meta_type=None, portal_type=None, def objectValues(self, spec=None, meta_type=None, portal_type=None,
sort_on=None, sort_order=None, base_id=None, sort_on=None, sort_order=None, base_id=None,
checked_permission=None, **kw): checked_permission=None, **kw):
""" # Returns list of objects contained in this folder.
Returns a list containing object contained in this folder. # (no docstring to prevent publishing)
"""
if meta_type is not None: if meta_type is not None:
spec = meta_type spec = meta_type
# when an object inherits from Folder after it was instanciated, it lacks # when an object inherits from Folder after it was instanciated, it lacks
...@@ -1408,10 +1408,8 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn, ...@@ -1408,10 +1408,8 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn,
'contentValues' ) 'contentValues' )
def contentValues(self, spec=None, meta_type=None, portal_type=None, def contentValues(self, spec=None, meta_type=None, portal_type=None,
sort_on=None, sort_order=None, checked_permission=None, **kw): sort_on=None, sort_order=None, checked_permission=None, **kw):
""" # Returns a list of documents contained in this folder.
Returns a list containing object contained in this folder. # ( no docstring to prevent publishing )
Filter objects with appropriate permissions (as in contentValues)
"""
if meta_type is not None: if meta_type is not None:
spec = meta_type spec = meta_type
if portal_type is not None: if portal_type is not None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment