shuup.admin.modules.products package

Submodules

shuup.admin.modules.products.mass_actions module

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/shuup/checkouts/v2.0.0/doc/api/shuup.admin.modules.products.rst, line 18)

autodoc: failed to import module ‘shuup.admin.modules.products.mass_actions’; the following exception was raised: Traceback (most recent call last): File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/envs/v2.0.0/lib/python3.5/site-packages/django/core/urlresolvers.py”, line 393, in urlconf_module return self._urlconf_module AttributeError: ‘RegexURLResolver’ object has no attribute ‘_urlconf_module’ During handling of the above exception, another exception occurred: Traceback (most recent call last): File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/envs/v2.0.0/lib/python3.5/site-packages/sphinx/ext/autodoc.py”, line 507, in import_object __import__(self.modname) File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/checkouts/v2.0.0/doc/../shuup/admin/modules/products/mass_actions.py”, line 71, in <module> class EditProductAttributesAction(PicotableRedirectMassAction): File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/checkouts/v2.0.0/doc/../shuup/admin/modules/products/mass_actions.py”, line 74, in EditProductAttributesAction redirect_url = reverse(“shuup_admin:shop_product.mass_edit”) File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/envs/v2.0.0/lib/python3.5/site-packages/django/core/urlresolvers.py”, line 549, in reverse app_list = resolver.app_dict[ns] File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/envs/v2.0.0/lib/python3.5/site-packages/django/core/urlresolvers.py”, line 351, in app_dict self._populate() File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/envs/v2.0.0/lib/python3.5/site-packages/django/core/urlresolvers.py”, line 284, in _populate for pattern in reversed(self.url_patterns): File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/envs/v2.0.0/lib/python3.5/site-packages/django/core/urlresolvers.py”, line 401, in url_patterns patterns = getattr(self.urlconf_module, “urlpatterns”, self.urlconf_module) File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/envs/v2.0.0/lib/python3.5/site-packages/django/core/urlresolvers.py”, line 395, in urlconf_module self._urlconf_module = import_module(self.urlconf_name) File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/envs/v2.0.0/lib/python3.5/importlib/__init__.py”, line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/checkouts/v2.0.0/doc/../shuup_workbench/urls.py”, line 15, in <module> url(r’^api/’, include(‘shuup.api.urls’)), File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/envs/v2.0.0/lib/python3.5/site-packages/django/conf/urls/__init__.py”, line 33, in include urlconf_module = import_module(urlconf_module) File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/envs/v2.0.0/lib/python3.5/importlib/__init__.py”, line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/checkouts/v2.0.0/doc/../shuup/api/urls.py”, line 15, in <module> from .docs import SwaggerSchemaView File “/home/docs/checkouts/readthedocs.org/user_builds/shuup/checkouts/v2.0.0/doc/../shuup/api/docs.py”, line 14, in <module> from rest_framework.compat import coreapi ImportError: cannot import name ‘coreapi’

shuup.admin.modules.products.sections module

class shuup.admin.modules.products.sections.ProductOrdersSection[source]

Bases: shuup.admin.base.Section

identifier = 'product_orders'
name = 'Orders'
icon = 'fa-inbox'
template = 'shuup/admin/products/_product_orders.jinja'
order = 1
static visible_for_object(product)[source]
static get_context_data(product)[source]

shuup.admin.modules.products.signal_handlers module

shuup.admin.modules.products.signal_handlers.update_categories_post_save(sender, instance, **kwargs)[source]
shuup.admin.modules.products.signal_handlers.update_categories_through(sender, instance, **kwargs)[source]

shuup.admin.modules.products.utils module

shuup.admin.modules.products.utils.clear_existing_package(parent_product)[source]

Utility function for clearing existing package.

Module contents

class shuup.admin.modules.products.ProductModule[source]

Bases: shuup.admin.base.AdminModule

name = <django.utils.functional.lazy.<locals>.__proxy__ object>
breadcrumbs_menu_entry = <shuup.admin.base.MenuEntry object>
get_urls()[source]
get_menu_entries(request)[source]
get_search_results(request, query)[source]
get_help_blocks(request, kind)[source]
get_required_permissions()[source]
get_model_url(object, kind)[source]