Institutions Python Module

Describes an institution and its attributes.

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

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

_meta = <peewee.Metadata object>
_schema = <peewee.SchemaManager object>
association_cd = <CharField: Institutions.association_cd>
contributors
created = <ExtendDateTimeField: Institutions.created>
deleted = <ExtendDateTimeField: Institutions.deleted>
encoding = <CharField: Institutions.encoding>
from_hash(obj)[source]

Convert the hash into the object.

id = <AutoField: Institutions.id>
is_foreign = <BooleanField: Institutions.is_foreign>
name = <TextField: Institutions.name>
to_hash(**flags)[source]

Convert the object to a hash.

updated = <ExtendDateTimeField: Institutions.updated>
users
classmethod where_clause(kwargs)[source]

PeeWee specific where clause used for search.