Class f.c.g.g.DataHandler(object):

Part of fixture.command.generate.generate View In Hierarchy

handles an object that can provide fixture data.
Method __init__ Undocumented
Method begin called once when starting to build a fixture.
Method commit called after performing any action successfully.
Method find finds a record set based on key, idval.
Method findall finds all records based on parameters.
Method fxt_type returns name of the type of Fixture class for this data object.
Method mk_class_name returns a fixture class for the fixture set.
Static Method recognizes return True if self can handle this object_path/object.
Method resolve_data_dict given a fixture set, resolve the linked sets
Method rollback called after any action raises an exception.
Method sets yield a FixtureSet for each set in obj.
def __init__(self, object_path, options, obj=None, template=None):
Undocumented
def begin(self):
called once when starting to build a fixture.
def commit(self):
called after performing any action successfully.
def find(self, idval):
finds a record set based on key, idval.
def findall(self, query):
finds all records based on parameters.
def fxt_type(self):
returns name of the type of Fixture class for this data object.
def mk_class_name(self, name_or_fset):
returns a fixture class for the fixture set.
@staticmethod
def recognizes(object_path, obj):
return True if self can handle this object_path/object.
def resolve_data_dict(self, datadef, fset):
given a fixture set, resolve the linked sets in the data_dict and log any necessary headers.

return the data_dict

def rollback(self):
called after any action raises an exception.
def sets(self):
yield a FixtureSet for each set in obj.
API Documentation for fixture, generated by pydoctor.