(self, models=None)
return set(chain.from_iterable(itervalues(self._indices)))
Get all documents in the registry or the documents for a list of models
Get all documents in the registry or the documents for a list of models
Get all documents in the registry or the documents for a list of models
def get_documents(self, models=None):
        """
        Get all documents in the registry or the documents for a list of models
        """
        if models is not None:
            return set(chain.from_iterable(self._models[model] for model in models
                                           if model in self._models))
        return set(chain.from_iterable(itervalues(self._indices)))
def get_documents ( self , models = None ) : if models is not None : return set ( chain . from_iterable ( self . _models [ model ] for model in models if model in self . _models ) ) return set ( chain . from_iterable ( itervalues ( self . _indices ) ) )