Institutions Python Module

Describes an institution and its attributes.

class pacifica.metadata.orm.institutions.Institutions(*args, **kwargs)

Institution model scribes an institute.

Attributes:
Name Description
name Name of the institution
association_cd Type of institution (TBD)
is_foreign Is the institution foreign or not
encoding Any encoding for the name
DoesNotExist

alias of InstitutionsDoesNotExist

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.