Commit 8f48d57f authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Merge branch 'exposing-groups-filedabase' into 'master'

Exposing the method groups in our FileDatabase API

See merge request !150
parents 4c32f1b8 ffd88436
Pipeline #20116 passed with stages
in 79 minutes and 59 seconds
......@@ -293,6 +293,20 @@ class BioDatabase(six.with_metaclass(abc.ABCMeta, bob.db.base.FileDatabase)):
raise NotImplementedError("Please implement this function in derived classes")
def groups(self):
Returns the names of all registered groups in the database
Keyword parameters:
protocol: str
The protocol for which the groups should be retrieved.
If you do not have protocols defined, just ignore this field.
raise NotImplementedError("This function must be implemented in your derived class.")
def objects(self, groups=None, protocol=None, purposes=None, model_ids=None, **kwargs):
"""This function returns a list of :py:class:`` objects or the list
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