shuup.notify.actions package¶
Submodules¶
shuup.notify.actions.debug module¶
shuup.notify.actions.email module¶
-
class
shuup.notify.actions.email.
SendEmail
(data, validate=True)[source]¶ Bases:
shuup.notify.base.Action
-
EMAIL_CONTENT_TYPE_CHOICES
= (('plain', 'Plain text'), ('html', 'HTML'))¶
-
identifier
= 'send_email'¶
-
template_use
= <TemplateUse.MULTILINGUAL: 2>¶
-
template_fields
= {'subject': <django.forms.fields.CharField object at 0x7fabcf6a9be0>, 'content_type': <django.forms.fields.ChoiceField object at 0x7fabcf6a72b0>, 'body': <django.forms.fields.CharField object at 0x7fabcf6a7320>}¶
-
execute
(context)[source]¶ Parameters: context (shuup.notify.script.Context) – Script Context
-
bindings
= {'fallback_language': <shuup.notify.base.Binding object at 0x7fabcf6a7630>, 'recipient': <shuup.notify.base.Binding object at 0x7fabcf6a7400>, 'language': <shuup.notify.base.Binding object at 0x7fabcf6a7470>, 'send_identifier': <shuup.notify.base.Binding object at 0x7fabcf6a76d8>}¶
-
name
= 'Send Email'¶
-
variables
= {}¶
-
shuup.notify.actions.notification module¶
-
class
shuup.notify.actions.notification.
AddNotification
(data, validate=True)[source]¶ Bases:
shuup.notify.base.Action
-
identifier
= 'add_notification'¶
-
bindings
= {'recipient': <shuup.notify.base.Binding object at 0x7fabcf6a7860>, 'message_identifier': <shuup.notify.base.Binding object at 0x7fabcf6a7978>, 'recipient_type': <shuup.notify.base.Binding object at 0x7fabcf6a7828>, 'priority': <shuup.notify.base.Binding object at 0x7fabcf6a78d0>, 'url': <shuup.notify.base.Binding object at 0x7fabcf6a79e8>, 'message': <shuup.notify.base.TemplatedBinding object at 0x7fabcf6a7908>}¶
-
name
= 'Add Notification'¶
-
variables
= {}¶
-
shuup.notify.actions.order module¶
-
class
shuup.notify.actions.order.
AddOrderLogEntry
(data, validate=True)[source]¶ Bases:
shuup.notify.base.Action
-
identifier
= 'add_order_log_entry'¶
-
bindings
= {'message_identifier': <shuup.notify.base.Binding object at 0x7fabcf6a7be0>, 'order': <shuup.notify.base.Binding object at 0x7fabcf6a7748>, 'message': <shuup.notify.base.Binding object at 0x7fabcf6a7a90>}¶
-
name
= 'Add Order Log Entry'¶
-
variables
= {}¶
-
Module contents¶
-
class
shuup.notify.actions.
AddNotification
(data, validate=True)[source]¶ Bases:
shuup.notify.base.Action
-
bindings
= {'recipient': <shuup.notify.base.Binding object at 0x7fabcf6a7860>, 'message_identifier': <shuup.notify.base.Binding object at 0x7fabcf6a7978>, 'recipient_type': <shuup.notify.base.Binding object at 0x7fabcf6a7828>, 'priority': <shuup.notify.base.Binding object at 0x7fabcf6a78d0>, 'url': <shuup.notify.base.Binding object at 0x7fabcf6a79e8>, 'message': <shuup.notify.base.TemplatedBinding object at 0x7fabcf6a7908>}¶
-
identifier
= 'add_notification'¶
-
name
= 'Add Notification'¶
-
variables
= {}¶
-
-
class
shuup.notify.actions.
AddOrderLogEntry
(data, validate=True)[source]¶ Bases:
shuup.notify.base.Action
-
bindings
= {'message_identifier': <shuup.notify.base.Binding object at 0x7fabcf6a7be0>, 'order': <shuup.notify.base.Binding object at 0x7fabcf6a7748>, 'message': <shuup.notify.base.Binding object at 0x7fabcf6a7a90>}¶
-
identifier
= 'add_order_log_entry'¶
-
name
= 'Add Order Log Entry'¶
-
variables
= {}¶
-
-
class
shuup.notify.actions.
SendEmail
(data, validate=True)[source]¶ Bases:
shuup.notify.base.Action
-
EMAIL_CONTENT_TYPE_CHOICES
= (('plain', 'Plain text'), ('html', 'HTML'))¶
-
bindings
= {'fallback_language': <shuup.notify.base.Binding object at 0x7fabcf6a7630>, 'recipient': <shuup.notify.base.Binding object at 0x7fabcf6a7400>, 'language': <shuup.notify.base.Binding object at 0x7fabcf6a7470>, 'send_identifier': <shuup.notify.base.Binding object at 0x7fabcf6a76d8>}¶
-
execute
(context)[source]¶ Parameters: context (shuup.notify.script.Context) – Script Context
-
identifier
= 'send_email'¶
-
name
= 'Send Email'¶
-
template_fields
= {'subject': <django.forms.fields.CharField object at 0x7fabcf6a9be0>, 'content_type': <django.forms.fields.ChoiceField object at 0x7fabcf6a72b0>, 'body': <django.forms.fields.CharField object at 0x7fabcf6a7320>}¶
-
template_use
= <TemplateUse.MULTILINGUAL: 2>¶
-
variables
= {}¶
-