Commit 39302de0 authored by Aurel's avatar Aurel

use marker for base_id in objectIds in order to not confuse when we

want all object for all trees or all object of the root tree


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17076 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0e1b5320
...@@ -438,14 +438,14 @@ class HBTreeFolder2Base (Persistent): ...@@ -438,14 +438,14 @@ class HBTreeFolder2Base (Persistent):
security.declareProtected(access_contents_information, security.declareProtected(access_contents_information,
'ObjectValues') 'ObjectValues')
def objectValues(self, base_id=None, spec=None): def objectValues(self, base_id=_marker, spec=None):
return LazyMap(self._getOb, self.objectIds(base_id)) return LazyMap(self._getOb, self.objectIds(base_id))
security.declareProtected(access_contents_information, security.declareProtected(access_contents_information,
'objectIds') 'objectIds')
def objectIds(self, base_id=None, spec=None): def objectIds(self, base_id=_marker, spec=None):
if base_id is None: if base_id is _marker:
return LazyCat(LazyMap(self._treeObjectIds, self.getTreeIdList())) return LazyCat(LazyMap(self._treeObjectIds, self.getTreeIdList()))
else: else:
return self._treeObjectIds(base_id=base_id) return self._treeObjectIds(base_id=base_id)
...@@ -453,7 +453,7 @@ class HBTreeFolder2Base (Persistent): ...@@ -453,7 +453,7 @@ class HBTreeFolder2Base (Persistent):
security.declareProtected(access_contents_information, security.declareProtected(access_contents_information,
'objectItems') 'objectItems')
def objectItems(self, base_id=None, spec=None): def objectItems(self, base_id=_marker, spec=None):
# Returns a list of (id, subobject) tuples of the current object. # Returns a list of (id, subobject) tuples of the current object.
# If 'spec' is specified, returns only objects whose meta_type match # If 'spec' is specified, returns only objects whose meta_type match
# 'spec' # 'spec'
......
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