boardinghouse.signals module¶
Signals that are fired as part of the django-boardinghouse project.
-
boardinghouse.signals.schema_created¶ Sent when a new schema object has been created in the database. Accepts a single argument, the (internal) name of the schema.
-
boardinghouse.signals.schema_pre_activate¶ Sent just before a schema will be activated. May be used to abort this by throwing an exception.
-
boardinghouse.signals.schema_post_activate¶ Sent immediately after a schema has been activated.
-
boardinghouse.signals.session_requesting_schema_change¶ Sent when a user-session has requested (and is, according to default rules, allowed to change to this schema). May be used to prevent the change, by throwing an exception.
-
boardinghouse.signals.session_schema_changed¶ Sent when a user-session has changed it’s schema.
-
boardinghouse.signals.create_schema(sender, instance, created, **kwargs)[source]¶ Actually create the schema in the database.
We do this in a signal handler instead of .save() so we can catch those created using raw methods.
-
boardinghouse.signals.inject_schema_attribute(sender, instance, **kwargs)[source]¶ A signal listener that injects the current schema on the object just after it is instantiated.
You may use this in conjunction with
MultiSchemaMixin, it will respect any value that has already been set on the instance.
-
boardinghouse.signals.invalidate_all_caches(sender, **kwargs)[source]¶ Invalidate all schemata caches. Not entirely sure this one works.