shop.modules.abstract ===================== .. py:module:: shop.modules.abstract Attributes ---------- .. autoapisummary:: shop.modules.abstract.logger Classes ------- .. autoapisummary:: shop.modules.abstract.ShopModuleAbstract Module Contents --------------- .. py:data:: logger .. py:class:: ShopModuleAbstract(moduleName = None, modulePath = None, shop = None, *args, **kwargs) Bases: :py:obj:`viur.core.Module` Abstract Class for all viur-shop sub/nested modules. The implementations should set `moduleName` as class variable, so the final module name for routing it not affected by the name of custom classes. .. py:attribute:: reference_user_created_skeletons_in_session :type: bool :value: False If True, keys of skeletons that the current user has created will be stored in the session. .. py:method:: adminInfo() .. py:attribute:: shop :type: viur.shop.Shop :value: None .. py:method:: register(target, render) Overwritten to avoid loops. The modules have an `shop` root/parent reference, but this should not again be discovered by :meth:`register`. Furthermore, this creates a new renderer instance just for this module (with the `parent` reference), which does usually the viur-core in :meth:`core.__build_app`. Otherwise, every module would use the same shop renderer. .. py:property:: session :type: dict Return a own session scope for this module .. py:method:: onAdded(*args)