Bases: object
A helper class for StatusMixin table and mapper setup.
Helps setting up tables and mappers for classes mixed in with stalker.core.models.StatusMixin
See examples/extending/statused_entity.py for an example.
x.__init__(...) initializes x; see help(type(x)) for signature
Methods
setup(class_, class_table[, mapper_arguments]) | Creates the necessary tables and properties for the mappers for the mixed in class. |
Creates the necessary tables and properties for the mappers for the mixed in class.
Use the returning dictionary (mapper_arguments) in your mapper.
Parameters: |
|
---|---|
Returns: | a dictionary holding the mapper_arguments |