Groups Python Module

Contains model for groups.

class pacifica.metadata.orm.groups.Groups(*args, **kwargs)

Groups model and associated fields.

Attributes:
Name Description
name name of the group
is_admin does the group has admin abilities
encoding encoding for the group name
DoesNotExist

alias of GroupsDoesNotExist

static elastic_mapping_builder(obj)

Build the elasticsearch mapping bits.

from_hash(obj)

Convert the hash into the object.

to_hash(**flags)

Convert the object to a hash.

classmethod where_clause(kwargs)

PeeWee specific where clause used for search.