Previous topic

stalker.db.mixin.StatusMixinDB

Next topic

stalker.db.tables

This Page

stalker.db.mixin.ScheduleMixinDB

Inheritance diagram of stalker.db.mixin.ScheduleMixinDB

class stalker.db.mixin.ScheduleMixinDB[source]

Bases: object

A helper class for ScheduleMixin table and mapper setup.

Helps setting up tables and mappers for classes mixed in with stalker.core.models.ScheduleMixin

For now there is no exmaple for it, but it is pretty similiar to the other mixin classes.

__init__()

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.
classmethod setup(class_, class_table, mapper_arguments={})[source]

Creates the necessary tables and properties for the mappers for the mixed in class.

Use the returning dictionary (mapper_arguments) in your mapper.

Parameters:
  • class_ – The mixed in class, in other words the class which will be extended with the mixin functionalities
  • class_table – The table holding the information about the class
  • mapper_arguments (dict) – Incoming mapper arugments for the SQLAlchemy.Orm.Mapper, it will be updated with the properties of the current mixin
Returns:

a dictionary holding the mapper_arguments