shuup.notify.admin_module.views package¶
Submodules¶
shuup.notify.admin_module.views.delete module¶
shuup.notify.admin_module.views.edit module¶
-
class
shuup.notify.admin_module.views.edit.ScriptEditView(**kwargs)[source]¶ Bases:
shuup.admin.utils.views.CreateOrUpdateViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
model¶ alias of
Script
-
form_class¶ alias of
ScriptForm
-
template_name= 'notify/admin/edit_script.jinja'¶
-
context_object_name= 'script'¶
-
shuup.notify.admin_module.views.editor module¶
-
class
shuup.notify.admin_module.views.editor.ScriptAPI(request, script)[source]¶ Bases:
objectParameters: - request (django.http.HttpRequest) – Request.
- script (shuup.notify.models.Script) – Script.
-
class
shuup.notify.admin_module.views.editor.EditScriptContentView(**kwargs)[source]¶ Bases:
django.views.generic.detail.DetailViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name= 'notify/admin/script_content_editor.jinja'¶
-
model¶ alias of
Script
-
context_object_name= 'script'¶
-
shuup.notify.admin_module.views.email_template module¶
-
class
shuup.notify.admin_module.views.email_template.EmailTemplateForm(**kwargs)[source]¶ Bases:
shuup.admin.forms._base.ShuupAdminFormNoTranslation-
class
Meta[source]¶ Bases:
object-
model¶ alias of
EmailTemplate
-
fields= ('name', 'template')¶
-
widgets= {'template': <class 'shuup.admin.forms.widgets.CodeEditorWithHTMLPreview'>}¶
-
-
base_fields= OrderedDict([('name', <django.forms.fields.CharField object>), ('template', <django.forms.fields.CharField object>)])¶
-
declared_fields= OrderedDict()¶
-
media¶
-
class
-
class
shuup.notify.admin_module.views.email_template.EmailTemplateEditView(**kwargs)[source]¶ Bases:
shuup.admin.utils.views.CreateOrUpdateViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
model¶ alias of
EmailTemplate
-
form_class¶ alias of
EmailTemplateForm
-
template_name= 'notify/admin/email_template_edit.jinja'¶
-
context_object_name= 'email_template'¶
-
-
class
shuup.notify.admin_module.views.email_template.EmailTemplateDeleteView(**kwargs)[source]¶ Bases:
django.views.generic.detail.DetailViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
model¶ alias of
EmailTemplate
-
-
class
shuup.notify.admin_module.views.email_template.EmailTemplateListView[source]¶ Bases:
shuup.admin.utils.views.PicotableListView-
model¶ alias of
EmailTemplate
-
url_identifier= 'notify.email_template'¶
-
default_columns= [<Column: Name> name]¶
-
mass_actions_provider_key= 'email_template_list_mass_actions_provider'¶
-
shuup.notify.admin_module.views.list module¶
-
class
shuup.notify.admin_module.views.list.ScriptListView[source]¶ Bases:
shuup.admin.utils.views.PicotableListView-
template_name= 'notify/admin/list_script.jinja'¶
-
model¶ alias of
Script
-
default_columns= [<Column: Name> name, <Column: Event> event_identifier, <Column: Enabled> enabled]¶
-
mass_actions_provider_key= 'notify_list_actions_provider'¶
-
shuup.notify.admin_module.views.template module¶
-
class
shuup.notify.admin_module.views.template.EditScriptMode[source]¶ Bases:
object-
CREATE= 'create'¶
-
MODIFY= 'modify'¶
-
-
class
shuup.notify.admin_module.views.template.ScriptTemplateView(**kwargs)[source]¶ Bases:
django.views.generic.base.TemplateViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name= 'notify/admin/script_templates.jinja'¶
-
-
class
shuup.notify.admin_module.views.template.ScriptTemplateConfigView(**kwargs)[source]¶ Bases:
django.views.generic.edit.FormViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name= 'notify/admin/script_template_config.jinja'¶
-
success_url= 'shuup_admin:notify.script.list'¶
-
dispatch(request, *args, **kwargs)[source]¶ Check if the request parameter
idhas a valid script template.
-
-
class
shuup.notify.admin_module.views.template.ScriptTemplateEditView(**kwargs)[source]¶ Bases:
django.views.generic.edit.FormViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
template_name= 'notify/admin/script_template_config.jinja'¶
-
success_url= 'shuup_admin:notify.script.list'¶
-
instance= None¶
-
dispatch(request, *args, **kwargs)[source]¶ Check if the request parameter
pkhas a valid templated Script instance.
-
Module contents¶
-
class
shuup.notify.admin_module.views.ScriptEditView(**kwargs)[source]¶ Bases:
shuup.admin.utils.views.CreateOrUpdateViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
context_object_name= 'script'¶
-
form_class¶ alias of
ScriptForm
-
model¶ alias of
Script
-
template_name= 'notify/admin/edit_script.jinja'¶
-
-
class
shuup.notify.admin_module.views.EditScriptContentView(**kwargs)[source]¶ Bases:
django.views.generic.detail.DetailViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
context_object_name= 'script'¶
-
model¶ alias of
Script
-
template_name= 'notify/admin/script_content_editor.jinja'¶
-
-
class
shuup.notify.admin_module.views.ScriptListView[source]¶ Bases:
shuup.admin.utils.views.PicotableListView-
default_columns= [<Column: Name> name, <Column: Event> event_identifier, <Column: Enabled> enabled]¶
-
mass_actions_provider_key= 'notify_list_actions_provider'¶
-
model¶ alias of
Script
-
template_name= 'notify/admin/list_script.jinja'¶
-
-
class
shuup.notify.admin_module.views.ScriptTemplateView(**kwargs)[source]¶ Bases:
django.views.generic.base.TemplateViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
post(request)[source]¶ Create the Script from template directly if the template does not have a bound form.
If the script template has a bound form, redirect to the template configuration view.
If no script template is found, redirect to the script list.
-
template_name= 'notify/admin/script_templates.jinja'¶
-
-
class
shuup.notify.admin_module.views.ScriptTemplateConfigView(**kwargs)[source]¶ Bases:
django.views.generic.edit.FormViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
dispatch(request, *args, **kwargs)[source]¶ Check if the request parameter
idhas a valid script template.
-
form_valid(form)[source]¶ Create the script from the template using the configuration from the form.
-
success_url= 'shuup_admin:notify.script.list'¶
-
template_name= 'notify/admin/script_template_config.jinja'¶
-
-
class
shuup.notify.admin_module.views.ScriptTemplateEditView(**kwargs)[source]¶ Bases:
django.views.generic.edit.FormViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
dispatch(request, *args, **kwargs)[source]¶ Check if the request parameter
pkhas a valid templated Script instance.
-
form_valid(form)[source]¶ Create the script from the template using the configuration from the form.
-
instance= None¶
-
success_url= 'shuup_admin:notify.script.list'¶
-
template_name= 'notify/admin/script_template_config.jinja'¶
-