shoop.notify.models package¶
Submodules¶
shoop.notify.models.notification module¶
-
class
shoop.notify.models.notification.NotificationManager[source]¶ Bases:
django.db.models.manager.Manager
-
class
shoop.notify.models.notification.Notification(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelA model for persistent notifications to be shown in the admin, etc.
-
recipient_type¶ A placeholder class that provides a way to set the attribute on the model.
-
recipient¶
-
priority¶ A placeholder class that provides a way to set the attribute on the model.
-
marked_read_by¶
-
objects= <shoop.notify.models.notification.NotificationManager object>¶
-
is_read¶
-
data¶
-
exception
DoesNotExist¶
-
exception
Notification.MultipleObjectsReturned¶
-
Notification.get_next_by_created_on(*moreargs, **morekwargs)¶
-
Notification.get_previous_by_created_on(*moreargs, **morekwargs)¶
-
Notification.get_priority_display(*moreargs, **morekwargs)¶
-
Notification.get_recipient_type_display(*moreargs, **morekwargs)¶
-
Notification.url¶
-
shoop.notify.models.script module¶
-
class
shoop.notify.models.script.Script(id, event_identifier, identifier, created_on, name, enabled, _step_data)[source]¶ Bases:
django.db.models.base.Model-
event_class¶
-
execute(context)[source]¶ Execute the script in the given context.
Parameters: context (shoop.notify.script.Context) – Script context
-
exception
DoesNotExist¶
-
exception
Script.MultipleObjectsReturned¶
-
Script.get_next_by_created_on(*moreargs, **morekwargs)¶
-
Script.get_previous_by_created_on(*moreargs, **morekwargs)¶
-
Script.objects= <django.db.models.manager.Manager object>¶
-
Module contents¶
-
class
shoop.notify.models.Notification(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelA model for persistent notifications to be shown in the admin, etc.
-
exception
DoesNotExist¶
-
exception
Notification.MultipleObjectsReturned¶
-
Notification.data¶
-
Notification.get_next_by_created_on(*moreargs, **morekwargs)¶
-
Notification.get_previous_by_created_on(*moreargs, **morekwargs)¶
-
Notification.get_priority_display(*moreargs, **morekwargs)¶
-
Notification.get_recipient_type_display(*moreargs, **morekwargs)¶
-
Notification.is_read¶
-
Notification.marked_read_by¶
-
Notification.objects= <shoop.notify.models.notification.NotificationManager object>¶
-
Notification.priority¶ A placeholder class that provides a way to set the attribute on the model.
-
Notification.recipient¶
-
Notification.recipient_type¶ A placeholder class that provides a way to set the attribute on the model.
-
Notification.url¶
-
exception
-
class
shoop.notify.models.Script(id, event_identifier, identifier, created_on, name, enabled, _step_data)[source]¶ Bases:
django.db.models.base.Model-
exception
DoesNotExist¶
-
exception
Script.MultipleObjectsReturned¶
-
Script.event_class¶
-
Script.execute(context)[source]¶ Execute the script in the given context.
Parameters: context (shoop.notify.script.Context) – Script context
-
Script.get_next_by_created_on(*moreargs, **morekwargs)¶
-
Script.get_previous_by_created_on(*moreargs, **morekwargs)¶
-
Script.objects= <django.db.models.manager.Manager object>¶
-
exception