shuup.testing.modules.sample_data package¶
Submodules¶
shuup.testing.modules.sample_data.data module¶
shuup.testing.modules.sample_data.factories module¶
-
shuup.testing.modules.sample_data.factories.create_sample_category(name, description, business_segment, image_file, shop)[source]¶
shuup.testing.modules.sample_data.forms module¶
-
class
shuup.testing.modules.sample_data.forms.SampleObjectsWizardForm(**kwargs)[source]¶ Bases:
django.forms.forms.Form-
BUSINESS_SEGMENT_CHOICES= [('default', 'Default')]¶
-
base_fields= OrderedDict([('business_segment', <django.forms.fields.ChoiceField object>), ('categories', <django.forms.fields.BooleanField object>), ('products', <django.forms.fields.BooleanField object>)])¶
-
declared_fields= OrderedDict([('business_segment', <django.forms.fields.ChoiceField object>), ('categories', <django.forms.fields.BooleanField object>), ('products', <django.forms.fields.BooleanField object>)])¶
-
media¶
-
shuup.testing.modules.sample_data.manager module¶
-
shuup.testing.modules.sample_data.manager.get_installed_business_segment(shop)[source]¶ Returns the installed business segment
-
shuup.testing.modules.sample_data.manager.get_installed_products(shop)[source]¶ Returns the installed products samples list
-
shuup.testing.modules.sample_data.manager.get_installed_categories(shop)[source]¶ Returns the installed categories samples list
-
shuup.testing.modules.sample_data.manager.get_installed_carousel(shop)[source]¶ Returns the installed sample carousel
-
shuup.testing.modules.sample_data.manager.clear_installed_samples(shop)[source]¶ Clears all the samples values from the configuration
-
shuup.testing.modules.sample_data.manager.save_business_segment(shop, business_segment)[source]¶ Save the business segment identifier
-
shuup.testing.modules.sample_data.manager.save_products(shop, products_pk)[source]¶ Save a list of PK as a list of sample products for a shop
-
shuup.testing.modules.sample_data.manager.save_categories(shop, categories_pk)[source]¶ Save a list of PK as a list of sample categories for a shop
shuup.testing.modules.sample_data.views module¶
-
class
shuup.testing.modules.sample_data.views.ConsolidateSampleObjectsView(**kwargs)[source]¶ Bases:
django.views.generic.edit.FormViewThis view will consolidate all the samples selected by user. All samples which are not in the form will be deleted.
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
-
form_class¶ alias of
ConsolidateObjectsForm
-
template_name= 'shuup/admin/sample_data/consolidate_samples.jinja'¶
-
-
class
shuup.testing.modules.sample_data.views.SampleObjectsWizardPane(request, object=None)[source]¶ Bases:
shuup.admin.views.wizard.WizardPane-
identifier= 'sample'¶
-
icon= 'shuup_admin/img/configure.png'¶
-
title= 'Sample Data'¶
-
text= 'To start shopping right now, please install some sample data into your shop'¶
-