harvester/ext/storage/mongodb.py
def _list_sub_collections(self, prefix=None, strip=True):
        """
        List all the collections having the selected prefix.

        :param prefix: string or list/tuple containing prefix parts.
        :param strip: if True (default), strip prefix from names
        """

        prefix = self._join_prefix(self._mongo_prefix, prefix)
        prefix = '.'.join(prefix)
        if prefix:
            prefix += '.'

        striplen = len(prefix) if strip else 0

        for name in self._database.collection_names():
            if name.startswith('system.'):
                continue  # Ignore system collections

            if (not prefix) or name.startswith(prefix):
                yield name[striplen:]

        List all the collections having the selected prefix.

        :param prefix: string or list/tuple containing prefix parts.
        :param strip: if True (default), strip prefix from names
        
List all the collections having the selected prefix.
List all the collections having the selected prefix .
def _list_sub_collections(self, prefix=None, strip=True):
        prefix = self._join_prefix(self._mongo_prefix, prefix)
        prefix = '.'.join(prefix)
        if prefix:
            prefix += '.'
        striplen = len(prefix) if strip else 0
        for name in self._database.collection_names():
            if name.startswith('system.'):
                continue  
            if (not prefix) or name.startswith(prefix):
                yield name[striplen:]
def _list_sub_collections ( self , prefix = None , strip = True ) : prefix = self . _join_prefix ( self . _mongo_prefix , prefix ) prefix = '.' . join ( prefix ) if prefix : prefix += '.' striplen = len ( prefix ) if strip else 0 for name in self . _database . collection_names ( ) : if name . startswith ( 'system.' ) : continue if ( not prefix ) or name . startswith ( prefix ) : yield name [ striplen : ]
List all the collections having the selected prefix.
List all the collections having the selected prefix .
"""
        List all the collections having the selected prefix.

        :param prefix: string or list/tuple containing prefix parts.
        :param strip: if True (default), strip prefix from names
        """ # Ignore system collections
self
prefix
string or list/tuple containing prefix parts.
string or list / tuple containing prefix parts .
strip
if True (default), strip prefix from names
if True ( default ) strip prefix from names