Keep track of static data loaded into the database
Find a registered fixture, return None if no fixture is found
Find the fixture key for an object of type entity with primary key :return: fixture_key
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
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.
Returns: | an integer representing the current version, 0 if no version found |
---|
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 the current version of the fixtures in the database for a certain fixture class.
Parameters: |
|
---|