shuup.notify.admin_module.views package

Submodules

shuup.notify.admin_module.views.edit module

class shuup.notify.admin_module.views.edit.ScriptEditView(**kwargs)[source]

Bases: shuup.admin.utils.views.CreateOrUpdateView

Constructor. 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'
get_context_data(**kwargs)[source]
form_valid(form)[source]

shuup.notify.admin_module.views.editor module

shuup.notify.admin_module.views.editor.script_item_editor(request)[source]
class shuup.notify.admin_module.views.editor.ScriptAPI(request, script)[source]

Bases: object

Parameters:
dispatch()[source]
handle_get_data(data)[source]
handle_save_data(data)[source]
class shuup.notify.admin_module.views.editor.EditScriptContentView(**kwargs)[source]

Bases: django.views.generic.detail.DetailView

Constructor. 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'
post(request, *args, **kwargs)[source]
get_context_data(**kwargs)[source]

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]
get_object_url(instance)[source]
get_event_identifier_text(instance)[source]
get_toolbar()[source]
get_object_abstract(instance, item)[source]

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.TemplateView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

template_name = 'notify/admin/script_templates.jinja'
get_context_data(**kwargs)[source]

Put all the script templates on disposal of the user.

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.

class shuup.notify.admin_module.views.template.ScriptTemplateConfigView(**kwargs)[source]

Bases: django.views.generic.edit.FormView

Constructor. 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 id has a valid script template.

get_form(form_class=None)[source]

Create and return the configuration form.

form_valid(form)[source]

Create the script from the template using the configuration from the form.

get_context_data(**kwargs)[source]
class shuup.notify.admin_module.views.template.ScriptTemplateEditView(**kwargs)[source]

Bases: django.views.generic.edit.FormView

Constructor. 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 pk has a valid templated Script instance.

get_form(form_class=None)[source]

Create and return the configuration form.

form_valid(form)[source]

Create the script from the template using the configuration from the form.

get_context_data(**kwargs)[source]

Module contents

shuup.notify.admin_module.views.script_item_editor(request)[source]
class shuup.notify.admin_module.views.ScriptEditView(**kwargs)[source]

Bases: shuup.admin.utils.views.CreateOrUpdateView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

context_object_name = 'script'
form_class

alias of ScriptForm

form_valid(form)[source]
get_context_data(**kwargs)[source]
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.DetailView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

context_object_name = 'script'
get_context_data(**kwargs)[source]
model

alias of Script

post(request, *args, **kwargs)[source]
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]
get_event_identifier_text(instance)[source]
get_object_abstract(instance, item)[source]
get_object_url(instance)[source]
get_toolbar()[source]
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.TemplateView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

get_context_data(**kwargs)[source]

Put all the script templates on disposal of the user.

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.FormView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

dispatch(request, *args, **kwargs)[source]

Check if the request parameter id has a valid script template.

form_valid(form)[source]

Create the script from the template using the configuration from the form.

get_context_data(**kwargs)[source]
get_form(form_class=None)[source]

Create and return the configuration 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.FormView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

dispatch(request, *args, **kwargs)[source]

Check if the request parameter pk has a valid templated Script instance.

form_valid(form)[source]

Create the script from the template using the configuration from the form.

get_context_data(**kwargs)[source]
get_form(form_class=None)[source]

Create and return the configuration form.

instance = None
success_url = 'shuup_admin:notify.script.list'
template_name = 'notify/admin/script_template_config.jinja'