Package Camelot :: Package camelot :: Package model :: Module fixture :: Class Fixture |
[frames] | no frames]

# Class Fixture

source code

Keep track of static data loaded into the database

Nested Classes
Inherited from `elixir.entity.Entity`: `__metaclass__`

Instance Methods
Inherited from `elixir.entity.Entity`: `__init__`, `delete`, `expire`, `expunge`, `flush`, `from_dict`, `merge`, `refresh`, `save`, `save_or_update`, `set`, `to_dict`, `update` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Class Methods
findFixture(cls, entity, fixture_key, fixture_class=None) Find a registered fixture, return None if no fixture is found | source code
findFixtureKeyAndClass(cls, obj) Find the fixture key and class of an object @param obj: the object we are looking for @return: (fixture_key, fixture_class) if the object is a registered fixture, (None, None) otherwise | source code
findFixtureKeysAnClasses(cls, entity) Load all fixture keys of a certain entity in batch :param entity: the model class for which the fixtures should be found :return: a dictionary mapping the primary key of a on object of type entity to its (fixture key, fixture class) | source code
findFixtureReference(cls, entity, fixture_key, fixture_class=None) | source code
insertOrUpdateFixture(cls, entity, fixture_key, values, fixture_class=None) | source code
Inherited from `elixir.entity.Entity`: `get`, `get_by`, `update_or_create`

Class Variables
| __elixir_mutators__ = ``[``(`<elixir.statements.ClassMutator object`...``
| mapper = `None` hash(x)
| table = `None` hash(x)

Properties
Inherited from `object`: `__class__`

Class Variable Details

  ### __elixir_mutators__ Value:
      [(<elixir.statements.ClassMutator object at 0x9804e0c>,
        (),
        {'tablename': 'fixture'})]