Class f.d.Ref(object):

Part of fixture.dataset View In Hierarchy

A reference to a row in a DataSet class.

This allows a DataSet to reference an id column of a "foreign key" DataSet before it exists.

Ref is a Descriptor containing a deferred value to an attribute of a data object (like an instance of a SQLAlchemy mapped class). It provides the DataSet a way to cloak the fact that "id" is an attribute only populated after said data object is saved to the database. In other words, the DataSet doesn't know or care when it has been loaded or not. It thinks it is referencing "id" all the same. The timing of when id is accessed is handled by the LoadableFixture.

Class Value A reference to a value in a row of a DataSet class.
Method __init__ Undocumented
Method __call__ Undocumented
Method __repr__ Undocumented
def __init__(self, dataset_class, row):
def __call__(self, ref_name):
def __repr__(self):
API Documentation for fixture, generated by pydoctor.