File Key Value Python Module

FileKeyValue links Files and Keys and Values objects.

class pacifica.metadata.orm.file_key_value.FileKeyValue(*args, **kwargs)

FileKeyValue attributes are foreign keys.

Attributes:
Name Description
file Link to the File model
key Link to the Key model
value Link to the Value model
DoesNotExist

alias of FileKeyValueDoesNotExist

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)

Where clause for the various elements.