Beispiel #1
0
 def count_lists(self, item=None, position=None, meta=None):
     assert position is None or item is not None
     if item: item = item._get_uriref()
     if meta: meta = _prepare_meta(meta)
     o = self._owner
     return sum( be.count_lists(pdict, None, item, position, meta)
                 for be, pdict in o._backends_dict.items() )
Beispiel #2
0
 def iter_lists(self, item=None, position=None, meta=None):
     """FIXME: missing docstring.
     """
     assert position is None or item is not None
     if item: item = item._get_uriref()
     if meta: meta = _prepare_meta(meta)
     o = self._owner
     for be, pdict in o._backends_dict.items():
         for i in be.iter_lists(pdict, None, item, position, meta):
             yield pdict[i[1]].get_element(i)
Beispiel #3
0
 def iter_tags(self, meta=None):
     if meta: meta = _prepare_meta(meta)
     o = self._owner
     for be, pdict in o._backends_dict.items():
         for i in be.iter_tags(pdict, None, meta):
             yield pdict[i[1]].get_element(i)
Beispiel #4
0
 def count_tags(self, meta=None):
     if meta: meta = _prepare_meta(meta)
     o = self._owner
     return sum( be.count_tags(pdict, None, meta)
                 for be, pdict in o._backends_dict.items() )