boardinghouse.receivers module

boardinghouse.receivers.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.

How do we indicate when we should be using a different template?

boardinghouse.receivers.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.receivers.invalidate_all_caches(sender, **kwargs)[source]

Invalidate all schemata caches. Not entirely sure this one works.

boardinghouse.receivers.invalidate_all_user_caches(sender, **kwargs)[source]

A signal listener that invalidates all schemata caches for all users who have access to the sender instance (schema).

boardinghouse.receivers.invalidate_cache(sender, **kwargs)[source]

A signal listener designed to invalidate the cache of a single user’s visible schemata items.