def _getOb(self, id, default=_marker): link = self._link if link is not None: obj = link._getOb(id, default) if obj is default: if default is _marker: raise KeyError(id) return default return SymlinkSubItem(aq_base(obj).__of__(self)).__of__(self) return CMFOrderedBTreeFolderBase._getOb(self, id, default)
def _getOb(self, id, default=_marker): if self._aliasTraversal: aliased = self._target if aliased is not None: obj = aliased._getOb(id, default) if obj is default: if default is _marker: raise KeyError(id) return default return aq_base(obj).__of__(self) return CMFOrderedBTreeFolderBase._getOb(self, id, default)
def _getOb(self, item_id, default=_marker): obj = CMFOrderedBTreeFolderBase._getOb(self, item_id, default) if obj is not default: return obj aliased = getSite() if aliased and item_id not in BLACK_LIST_IDS: obj = aliased._getOb(item_id, default) if obj is default: return default new_object = aq_base(obj).__of__(self) new_object._v_is_shared_content = True return new_object if default is not _marker: return default
def _getOb(self, id, default=_marker): obj = CMFOrderedBTreeFolderBase._getOb(self, id, default) if obj is not default: return obj else: aliased = getSite() if aliased: if (id not in _languagelist and id not in _combinedlanguagelist): obj = aliased._getOb(id, default) if obj is default: # if default is _marker: # raise KeyError return default new_object = aq_base(obj).__of__(self) new_object._v_is_shared_content = True return new_object