shuup.importer.admin_module package
Submodules
shuup.importer.admin_module.forms module
- class shuup.importer.admin_module.forms.ImportSettingsForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]
Bases:
Form
- base_fields = {'import_mode': <enumfields.forms.EnumChoiceField object>}
- declared_fields = {'import_mode': <enumfields.forms.EnumChoiceField object>}
- property media
Return all media required to render the widgets on this form.
- class shuup.importer.admin_module.forms.ImportForm(**kwargs)[source]
Bases:
Form
- base_fields = {'file': <django.forms.fields.FileField object>, 'importer': <django.forms.fields.ChoiceField object>, 'language': <django.forms.fields.ChoiceField object>}
- declared_fields = {'file': <django.forms.fields.FileField object>, 'importer': <django.forms.fields.ChoiceField object>, 'language': <django.forms.fields.ChoiceField object>}
- property media
Return all media required to render the widgets on this form.
shuup.importer.admin_module.import_views module
- class shuup.importer.admin_module.import_views.ImporterPicotable(request, columns, mass_actions, queryset, context)[source]
Bases:
Picotable
- class shuup.importer.admin_module.import_views.ImportProcessView(**kwargs)[source]
Bases:
TemplateView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/importer/admin/import_process.jinja'
- class shuup.importer.admin_module.import_views.ImportView(**kwargs)[source]
Bases:
FormView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- template_name = 'shuup/importer/admin/import.jinja'
- form_class
alias of
ImportForm
- class shuup.importer.admin_module.import_views.ExampleFileDownloadView(**kwargs)[source]
Bases:
View
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- class shuup.importer.admin_module.import_views.ImportListView(*args, **kwargs)[source]
Bases:
PicotableListView
- picotable_class
alias of
ImporterPicotable
- model
alias of
BackgroundTaskExecution
- default_columns = [<Column: Import date> started_on, <Column: Importer> importer, <Column: Import mode> import_mode, <Column: User> user, <Column: Status> status]
- get_queryset()[source]
Return the list of items for this view.
The return value must be an iterable and may be an instance of
QuerySet
in which caseQuerySet
specific behavior will be enabled.
- get_object_abstract(instance, item)[source]
Get the object abstract lines (used for mobile layouts) for this object.
Supported keys in abstract line dicts are:
text (required)
title
class (CSS class name –
header
for instance)raw (boolean; whether or not the
text
is raw HTML)
- Parameters:
instance – The instance.
item – The item dict so far. Useful for reusing precalculated values.
- Returns:
Iterable of dicts to pass through to the picotable javascript.
- Return type:
Iterable[dict]
- class shuup.importer.admin_module.import_views.ImportDetailView(**kwargs)[source]
Bases:
DetailView
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- model
alias of
BackgroundTaskExecution
- template_name = 'shuup/importer/admin/import_process_complete.jinja'
Module contents
- class shuup.importer.admin_module.ImportAdminModule[source]
Bases:
AdminModule
- name = 'Data Import'
- get_extra_permissions()[source]
Define custom extra permissions for admin module for option to limit certain parts of the admin module based on per user permission string. Should return unique list permission strings across the installation to prevent unwanted side effects.
- get_permissions_help_texts()[source]
Returns a dictionary where the keys is the permission identifier and the value is a help text that can help the user to understand where the permissions is used and how it works.
- Return type: