mewlo.mpacks.core.database.mdbmodel_fieldset module

mdbmodelfieldset.py MewloDbFieldset is a helper MewloDbObject that holds a set of fields in a has-a relationship with another object. You can how this class is used via calls to make_fieldset_dbobjectclass() from muser.py and mgroup.py,

essentially they allow the dynamic creation of helper database tables that are associated with users and groups, etc.
class mewlo.mpacks.core.database.mdbmodel_fieldset.MewloDbFieldset[source]

Bases: mewlo.mpacks.core.database.mdbmodel.MewloDbModel

Helper MewloDbObject that holds a set of fields in a has-a relationship with another object.

classmethod define_fields(dbmanager)[source]

This class-level function defines the database fields for this model.

classmethod make_fieldset_dbobjectclass(ownerclass, propname, proplabel, backrefname, dbmanager, subfields)[source]

Make a new derived database model class that will store some fields in a has-a relationship with us.

classmethod set_ownerclass(ownerclass)[source]

Table Of Contents

Previous topic

mewlo.mpacks.core.database.mdbmodel module

Next topic

mewlo.mpacks.core.database.mdbmodel_gob module

This Page