assembl.models.preferences module

A set of preferences that apply to a Discussion.

May be defined at the user, Discussion or server level.

class assembl.models.preferences.Preferences(**kwargs)[source]

Bases: collections.abc.MutableMapping, assembl.models.NamedClassMixin, assembl.models.AbstractBase

Cascading preferences

generic_json(view_def_name='default', user_id='system.Everyone', permissions=('Conversation.R'), base_uri='local:')[source]

Return a representation of this object as a JSON object, according to the given view_def and access control.

classmethod init_from_settings(settings)[source]

Initialize some preference values

assembl.models.preferences.includeme(config)[source]

Initialize some preference values