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

Class FixtureVersion

source code


Keep track of the version the fixtures have in the current database, the subversion revision number is a good candidate to be used as a fixture version.
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
 
get_current_version(cls, fixture_class=None)
Get the current version of the fixtures in the database for a certain fixture class.
source code
 
set_current_version(cls, fixture_class=None, fixture_version=0)
Set the current version of the fixtures in the database for a certain fixture class.
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__

Method Details

get_current_version(cls, fixture_class=None)
Class Method

source code 
Get the current version of the fixtures in the database for a certain fixture class.
Parameters:
  • fixture_class - the fixture class for which to get the version

set_current_version(cls, fixture_class=None, fixture_version=0)
Class Method

source code 
Set the current version of the fixtures in the database for a certain fixture class.
Parameters:
  • fixture_class - the fixture class for which to get the version
  • fixture_version - the version number to which to set the fixture version

Class Variable Details

__elixir_mutators__

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