def _get_per_method_type_urls(self, url_part, class_name_prefix, url_name_prefix): ns = { "url_part": url_part, "class_name_prefix": class_name_prefix, "url_name_prefix": url_name_prefix, } return [ admin_url( "^methods/%(url_part)s/(?P<pk>\d+)/detail/$" % ns, "shoop.admin.modules.methods.views.%(class_name_prefix)sEditDetailView" % ns, name="%(url_name_prefix)s.edit-detail" % ns), admin_url( "^methods/%(url_part)s/(?P<pk>\d+)/$" % ns, "shoop.admin.modules.methods.views.%(class_name_prefix)sEditView" % ns, name="%(url_name_prefix)s.edit" % ns), admin_url( "^methods/%(url_part)s/new/$" % ns, "shoop.admin.modules.methods.views.%(class_name_prefix)sEditView" % ns, kwargs={"pk": None}, name="%(url_name_prefix)s.new" % ns), admin_url( "^methods/%(url_part)s/$" % ns, "shoop.admin.modules.methods.views.%(class_name_prefix)sListView" % ns, name="%(url_name_prefix)s.list" % ns), ]
def get_urls(self): return [ admin_url( "^products/(?P<pk>\d+)/delete/$", "shoop.admin.modules.products.views.ProductDeleteView", name="product.delete" ), admin_url( "^products/(?P<pk>\d+)/media/$", "shoop.admin.modules.products.views.ProductMediaEditView", name="product.edit_media" ), admin_url( "^products/(?P<pk>\d+)/crosssell/$", "shoop.admin.modules.products.views.ProductCrossSellEditView", name="product.edit_cross_sell" ), admin_url( "^products/(?P<pk>\d+)/variation/$", "shoop.admin.modules.products.views.ProductVariationView", name="product.edit_variation" ), admin_url( "^products/(?P<pk>\d+)/package/$", "shoop.admin.modules.products.views.ProductPackageView", name="product.edit_package" ), ] + get_edit_and_list_urls( url_prefix="^products", view_template="shoop.admin.modules.products.views.Product%sView", name_template="product.%s" )
def get_urls(self): return [ admin_url( "^contacts/new/$", "shoop.admin.modules.contacts.views.ContactEditView", kwargs={"pk": None}, name="contact.new" ), admin_url( "^contacts/(?P<pk>\d+)/edit/$", "shoop.admin.modules.contacts.views.ContactEditView", name="contact.edit" ), admin_url( "^contacts/(?P<pk>\d+)/$", "shoop.admin.modules.contacts.views.ContactDetailView", name="contact.detail" ), admin_url( "^contacts/reset-password/(?P<pk>\d+)/$", "shoop.admin.modules.contacts.views.ContactResetPasswordView", name="contact.reset_password" ), admin_url( "^contacts/$", "shoop.admin.modules.contacts.views.ContactListView", name="contact.list" ), ]
def get_urls(self): permissions = get_default_model_permissions(NotificationModel) return [ admin_url( "notify/script-item-editor/", "shoop.notify.admin_module.views.script_item_editor", name="notify.script-item-editor", permissions=permissions ), admin_url( "notify/script/content/(?P<pk>\d+)/", "shoop.notify.admin_module.views.EditScriptContentView", name="notify.script.edit-content", permissions=permissions ), admin_url( "notify/mark-read/(?P<pk>\d+)/$", self.mark_notification_read_view, name="notify.mark-read", permissions=permissions ), ] + get_edit_and_list_urls( url_prefix="^notify/script", view_template="shoop.notify.admin_module.views.Script%sView", name_template="notify.script.%s", permissions=permissions )
def get_urls(self): return [ admin_url( "^products/(?P<pk>\d+)/delete/$", "shoop.admin.modules.products.views.ProductDeleteView", name="product.delete", permissions=["shoop.delete_product"] ), admin_url( "^products/(?P<pk>\d+)/media/$", "shoop.admin.modules.products.views.ProductMediaEditView", name="product.edit_media", permissions=get_default_model_permissions(Product), ), admin_url( "^products/(?P<pk>\d+)/crosssell/$", "shoop.admin.modules.products.views.ProductCrossSellEditView", name="product.edit_cross_sell", permissions=get_default_model_permissions(ProductCrossSell), ), admin_url( "^products/(?P<pk>\d+)/variation/$", "shoop.admin.modules.products.views.ProductVariationView", name="product.edit_variation", permissions=get_default_model_permissions(ProductVariationResult), ), admin_url( "^products/(?P<pk>\d+)/package/$", "shoop.admin.modules.products.views.ProductPackageView", name="product.edit_package", permissions=get_default_model_permissions(ProductPackageLink), ), ] + get_edit_and_list_urls( url_prefix="^products", view_template="shoop.admin.modules.products.views.Product%sView", name_template="product.%s", permissions=get_default_model_permissions(Product), )
def get_urls(): urls = [] urls.extend(get_module_urls()) urls.extend([ admin_url(r'^$', DashboardView.as_view(), name='dashboard'), admin_url(r'^search/$', SearchView.as_view(), name='search'), admin_url(r'^menu/$', MenuView.as_view(), name='menu'), admin_url(r'^login/$', login, kwargs={"template_name": "shoop/admin/auth/login.jinja"}, name='login', require_authentication=False), admin_url(r'^logout/$', auth_views.logout, kwargs={"template_name": "shoop/admin/auth/logout.jinja"}, name='logout', require_authentication=False), ]) for u in urls: # pragma: no cover if not isinstance(u, AdminRegexURLPattern): warnings.warn("Admin URL %r is not an AdminRegexURLPattern" % u) return tuple(urls)
def get_urls(self): return [ admin_url( "^orders/(?P<pk>\d+)/create-shipment/$", "shoop.admin.modules.orders.views.OrderCreateShipmentView", name="order.create-shipment" ), admin_url( "^orders/(?P<pk>\d+)/set-status/$", "shoop.admin.modules.orders.views.OrderSetStatusView", name="order.set-status" ), admin_url( "^orders/(?P<pk>\d+)/$", "shoop.admin.modules.orders.views.OrderDetailView", name="order.detail" ), admin_url( "^orders/new/$", "shoop.admin.modules.orders.views.OrderCreateView", name="order.new" ), admin_url( "^orders/$", "shoop.admin.modules.orders.views.OrderListView", name="order.list" ), ]
def get_urls(self): return [ admin_url( "^contacts/new/$", "shoop.admin.modules.contacts.views.ContactEditView", kwargs={"pk": None}, name="contact.new", permissions=["shoop.add_contact"], ), admin_url( "^contacts/(?P<pk>\d+)/edit/$", "shoop.admin.modules.contacts.views.ContactEditView", name="contact.edit", permissions=["shoop.change_contact"], ), admin_url( "^contacts/(?P<pk>\d+)/$", "shoop.admin.modules.contacts.views.ContactDetailView", name="contact.detail", permissions=get_default_model_permissions(Contact), ), admin_url( "^contacts/reset-password/(?P<pk>\d+)/$", "shoop.admin.modules.contacts.views.ContactResetPasswordView", name="contact.reset_password", permissions=get_default_model_permissions(Contact), ), admin_url( "^contacts/$", "shoop.admin.modules.contacts.views.ContactListView", name="contact.list", permissions=get_default_model_permissions(Contact), ), ]
def get_urls(): urls = [] urls.extend(get_module_urls()) urls.extend([ admin_url(r'^$', DashboardView.as_view(), name='dashboard'), admin_url(r'^search/$', SearchView.as_view(), name='search'), admin_url(r'^menu/$', MenuView.as_view(), name='menu'), admin_url( r'^login/$', login, kwargs={"template_name": "shoop/admin/auth/login.jinja"}, name='login', require_authentication=False ), admin_url( r'^logout/$', auth_views.logout, kwargs={"template_name": "shoop/admin/auth/logout.jinja"}, name='logout', require_authentication=False ), ]) for u in urls: # pragma: no cover if not isinstance(u, AdminRegexURLPattern): warnings.warn("Admin URL %r is not an AdminRegexURLPattern" % u) # Add Django javascript catalog url urls.append(url(r'^jsi18n.js$', javascript_catalog, {'packages': ('shoop',)}, name='js-catalog')) return tuple(urls)
def get_urls(self): return [ admin_url( "^addons/$", "shoop.addons.admin_module.views.AddonListView", name="addon.list", permissions=get_default_model_permissions(Shop) ), admin_url( "^addons/add/$", "shoop.addons.admin_module.views.AddonUploadView", name="addon.upload", permissions=get_default_model_permissions(Shop) ), admin_url( "^addons/add/confirm/$", "shoop.addons.admin_module.views.AddonUploadConfirmView", name="addon.upload_confirm", permissions=get_default_model_permissions(Shop) ), admin_url( "^addons/reload/$", "shoop.addons.admin_module.views.ReloadView", name="addon.reload", permissions=get_default_model_permissions(Shop) ), ]
def _get_per_method_type_urls(self, url_part, class_name_prefix, url_name_prefix): ns = { "url_part": url_part, "class_name_prefix": class_name_prefix, "url_name_prefix": url_name_prefix, } return [ admin_url( "^methods/%(url_part)s/(?P<pk>\d+)/detail/$" % ns, "shoop.admin.modules.methods.views.%(class_name_prefix)sEditDetailView" % ns, name="%(url_name_prefix)s.edit-detail" % ns ), admin_url( "^methods/%(url_part)s/(?P<pk>\d+)/$" % ns, "shoop.admin.modules.methods.views.%(class_name_prefix)sEditView" % ns, name="%(url_name_prefix)s.edit" % ns ), admin_url( "^methods/%(url_part)s/new/$" % ns, "shoop.admin.modules.methods.views.%(class_name_prefix)sEditView" % ns, kwargs={"pk": None}, name="%(url_name_prefix)s.new" % ns ), admin_url( "^methods/%(url_part)s/$" % ns, "shoop.admin.modules.methods.views.%(class_name_prefix)sListView" % ns, name="%(url_name_prefix)s.list" % ns ), ]
def get_urls(self): # doccov: ignore return [ admin_url( "^xtheme/(?P<theme_identifier>.+?)/", "shoop.xtheme.admin_module.views.ThemeConfigDetailView", name="xtheme.config_detail", ), admin_url("^xtheme/", "shoop.xtheme.admin_module.views.ThemeConfigView", name="xtheme.config"), ]
def get_urls(self): # doccov: ignore return [ admin_url("^xtheme/(?P<theme_identifier>.+?)/", "shoop.xtheme.admin_module.views.ThemeConfigDetailView", name="xtheme.config_detail"), admin_url("^xtheme/", "shoop.xtheme.admin_module.views.ThemeConfigView", name="xtheme.config") ]
def get_urls(self): return [ admin_url( "^adjust-stock/(?P<supplier_id>\d+)/(?P<product_id>\d+)/", "shoop.simple_supplier.admin_module.views.process_stock_adjustment", name="simple_supplier.stocks"), admin_url( "^stocks/", "shoop.simple_supplier.admin_module.views.StocksListView", name="simple_supplier.stocks"), ]
def get_urls(self): return [ admin_url( "^printouts/delivery/(?P<shipment_pk>\d+)/$", "shoop.order_printouts.admin_module.views.get_delivery_pdf", name="printouts.delivery_pdf"), admin_url( "^printouts/confirmation/(?P<order_pk>\d+)/$", "shoop.order_printouts.admin_module.views.get_confirmation_pdf", name="printouts.confirmation_pdf"), ]
def get_urls(self): return [ admin_url("^reservations/new/", "reservations.views.ReservationEditView", name="reservations.new"), admin_url("^reservations/(?P<pk>\d+)", "reservations.views.ReservationEditView", name="reservations.edit"), admin_url("^reservations/", "reservations.views.ReservationsAdminList", name="reservations.list") ]
def get_urls(self): return [ # TODO: Add url for tax dashboard? # urls for Tax admin_url( "^taxes/tax/(?P<pk>\d+)/$", "shoop.admin.modules.taxes.views.edit.TaxEditView", name="tax.edit" ), admin_url( "^taxes/tax/new/$", "shoop.admin.modules.taxes.views.edit.TaxEditView", kwargs={"pk": None}, name="tax.new" ), admin_url( "^taxes/tax/$", "shoop.admin.modules.taxes.views.list.TaxListView", name="tax.list" ), # urls for CustomerTaxGroup admin_url( "^taxes/customer-tax-group/(?P<pk>\d+)/$", "shoop.admin.modules.taxes.views.edit.CustomerTaxGroupEditView", name="customer_tax_group.edit" ), admin_url( "^taxes/customer-tax-group/new/$", "shoop.admin.modules.taxes.views.edit.CustomerTaxGroupEditView", kwargs={"pk": None}, name="customer_tax_group.new"), admin_url( "^taxes/customer-tax-group/$", "shoop.admin.modules.taxes.views.list.CustomerTaxGroupListView", name="customer_tax_group.list" ), # urls for TaxClass admin_url( "^taxes/tax-class/(?P<pk>\d+)/$", "shoop.admin.modules.taxes.views.edit.TaxClassEditView", name="tax_class.edit" ), admin_url( "^taxes/tax-class/new/$", "shoop.admin.modules.taxes.views.edit.TaxClassEditView", kwargs={"pk": None}, name="tax_class.new" ), admin_url( "^taxes/tax-class/$", "shoop.admin.modules.taxes.views.list.TaxClassListView", name="tax_class.list" ), ]
def get_urls(self): return [ admin_url("default-tax/rules/(?P<pk>\d+)/", "shoop.default_tax.admin_module.views.TaxRuleEditView", name="default_tax.tax_rule.edit"), admin_url("default-tax/rules/new/", "shoop.default_tax.admin_module.views.TaxRuleEditView", kwargs={"pk": None}, name="default_tax.tax_rule.new"), admin_url("default-tax/rules/", "shoop.default_tax.admin_module.views.TaxRuleListView", name="default_tax.tax_rule.list"), ]
def get_urls(self): return [ admin_url("cms/page/(?P<pk>\d+)/", "shoop.simple_cms.admin_module.views.PageEditView", name="simple_cms.page.edit"), admin_url("cms/page/new/", "shoop.simple_cms.admin_module.views.PageEditView", kwargs={"pk": None}, name="simple_cms.page.new"), admin_url("cms/pages/", "shoop.simple_cms.admin_module.views.PageListView", name="simple_cms.page.list"), ]
def get_urls(self): return [ admin_url( "^adjust-stock/(?P<supplier_id>\d+)/(?P<product_id>\d+)/", "shoop.simple_supplier.admin_module.views.process_stock_adjustment", name="simple_supplier.stocks" ), admin_url( "^stocks/", "shoop.simple_supplier.admin_module.views.StocksListView", name="simple_supplier.stocks" ), ]
def get_urls(self): return [ admin_url( "test/$", OkAction, name="test-auth", require_authentication=True), admin_url( "test2/$", "shoop_tests.admin.fixtures.test_module.OkAction", name="test-unauth", require_authentication=False), admin_url( "test3/$", "shoop_tests.admin.fixtures.test_module.OkAction", name="test-perm", require_authentication=True, permissions=("bogus-permission",)), ]
def get_urls(self): return [ admin_url( "^printouts/delivery/(?P<shipment_pk>\d+)/$", "shoop.order_printouts.admin_module.views.get_delivery_pdf", name="printouts.delivery_pdf" ), admin_url( "^printouts/confirmation/(?P<order_pk>\d+)/$", "shoop.order_printouts.admin_module.views.get_confirmation_pdf", name="printouts.confirmation_pdf" ), ]
def get_urls(self): return [ admin_url("^addons/$", "shoop.addons.admin_module.views.AddonListView", name="addon.list"), admin_url("^addons/add/$", "shoop.addons.admin_module.views.AddonUploadView", name="addon.upload"), admin_url("^addons/add/confirm/$", "shoop.addons.admin_module.views.AddonUploadConfirmView", name="addon.upload_confirm"), admin_url("^addons/reload/$", "shoop.addons.admin_module.views.ReloadView", name="addon.reload"), ]
def get_urls(self): return [ admin_url("notify/script-item-editor/", "shoop.notify.admin_module.views.script_item_editor", name="notify.script-item-editor"), admin_url("notify/script/content/(?P<pk>\d+)/", "shoop.notify.admin_module.views.EditScriptContentView", name="notify.script.edit-content"), admin_url("notify/mark-read/(?P<pk>\d+)/$", self.mark_notification_read_view, name="notify.mark-read"), ] + get_edit_and_list_urls( url_prefix="^notify/script", view_template="shoop.notify.admin_module.views.Script%sView", name_template="notify.script.%s")
def get_urls(self): # doccov: ignore return [ admin_url( "^xtheme/(?P<theme_identifier>.+?)/", "shoop.xtheme.admin_module.views.ThemeConfigDetailView", name="xtheme.config_detail", permissions=get_default_model_permissions(ThemeSettings) ), admin_url( "^xtheme/", "shoop.xtheme.admin_module.views.ThemeConfigView", name="xtheme.config", permissions=get_default_model_permissions(ThemeSettings) ) ]
def get_urls(self): return [ admin_url( "^product-types/(?P<pk>\d+)/$", "shoop.admin.modules.product_types.views.ProductTypeEditView", name="product-type.edit"), admin_url( "^product-types/new/$", "shoop.admin.modules.product_types.views.ProductTypeEditView", kwargs={"pk": None}, name="product-type.new"), admin_url( "^product-types/$", "shoop.admin.modules.product_types.views.ProductTypeListView", name="product-type.list"), ]
def get_urls(self): return [ admin_url( "^contact-groups/(?P<pk>\d+)/$", "shoop.admin.modules.contact_groups.views.ContactGroupEditView", name="contact-group.edit"), admin_url( "^contact-groups/new/$", "shoop.admin.modules.contact_groups.views.ContactGroupEditView", kwargs={"pk": None}, name="contact-group.new"), admin_url( "^contact-groups/$", "shoop.admin.modules.contact_groups.views.ContactGroupListView", name="contact-group.list"), ]
def get_urls(self): return [ admin_url( "^system/telemetry/$", "shoop.admin.modules.system.views.telemetry.TelemetryView", name="telemetry"), ]
def get_urls(self): return [ admin_url( "^orders/(?P<pk>\d+)/create-shipment/$", "shoop.admin.modules.orders.views.OrderCreateShipmentView", name="order.create-shipment"), admin_url("^orders/(?P<pk>\d+)/set-status/$", "shoop.admin.modules.orders.views.OrderSetStatusView", name="order.set-status"), admin_url("^orders/(?P<pk>\d+)/$", "shoop.admin.modules.orders.views.OrderDetailView", name="order.detail"), admin_url("^orders/$", "shoop.admin.modules.orders.views.OrderListView", name="order.list"), ]
def get_urls(self): return [ admin_url( "^system/telemetry/$", "shoop.admin.modules.system.views.telemetry.TelemetryView", name="telemetry" ), ]
def get_urls(self): return [ admin_url( "^carts/$", "shoop.front.admin_module.carts.views.CartListView", name="cart.list", ), ]
def get_urls(self): return [ admin_url( "^media/$", "shoop.admin.modules.media.views.MediaBrowserView", name="media.browse" ), ]
def get_urls(): urls = [] urls.extend(get_module_urls()) urls.extend([ admin_url(r'^$', DashboardView.as_view(), name='dashboard'), admin_url(r'^search/$', SearchView.as_view(), name='search'), admin_url(r'^select/$', MultiselectAjaxView.as_view(), name='select'), admin_url(r'^menu/$', MenuView.as_view(), name='menu'), admin_url(r'^login/$', login, kwargs={"template_name": "shoop/admin/auth/login.jinja"}, name='login', require_authentication=False), admin_url(r'^logout/$', auth_views.logout, kwargs={"template_name": "shoop/admin/auth/logout.jinja"}, name='logout', require_authentication=False), admin_url(r'^set-language/$', csrf_exempt(set_language), name="set-language"), ]) for u in urls: # pragma: no cover if not isinstance(u, AdminRegexURLPattern): warnings.warn("Admin URL %r is not an AdminRegexURLPattern" % u) # Add Django javascript catalog url urls.append(url(r'^i18n.js$', javascript_catalog_all, name='js-catalog')) return tuple(urls)
def get_urls(self): return [ admin_url( "^mocker/$", "shoop.testing.admin_module.mocker_view.MockerView", name="mocker", permissions=get_default_model_permissions(Shop) ) ]
def get_urls(self): return [ admin_url( "^product-types/(?P<pk>\d+)/$", "shoop.admin.modules.product_types.views.ProductTypeEditView", name="product-type.edit"), admin_url( "^product-types/new/$", "shoop.admin.modules.product_types.views.ProductTypeEditView", kwargs={"pk": None}, name="product-type.new" ), admin_url( "^product-types/$", "shoop.admin.modules.product_types.views.ProductTypeListView", name="product-type.list" ), ]
def get_urls(self): return [ admin_url( "^system/telemetry/$", "shoop.admin.modules.system.views.telemetry.TelemetryView", name="telemetry", permissions=get_default_model_permissions(Shop) ), ]
def get_urls(self): return [ admin_url( "^attributes/(?P<pk>\d+)/$", "shoop.admin.modules.attributes.views.AttributeEditView", name="attribute.edit"), admin_url( "^attributes/new/$", "shoop.admin.modules.attributes.views.AttributeEditView", kwargs={"pk": None}, name="attribute.new" ), admin_url( "^attributes/$", "shoop.admin.modules.attributes.views.AttributeListView", name="attribute.list" ), ]
def get_urls(self): return [ admin_url( "^carts/$", "shoop.front.admin_module.carts.views.CartListView", name="cart.list", permissions=get_default_model_permissions(StoredBasket), ), ]
def get_urls(self): return [ admin_url( "^contact-groups/(?P<pk>\d+)/$", "shoop.admin.modules.contact_groups.views.ContactGroupEditView", name="contact-group.edit"), admin_url( "^contact-groups/new/$", "shoop.admin.modules.contact_groups.views.ContactGroupEditView", kwargs={"pk": None}, name="contact-group.new" ), admin_url( "^contact-groups/$", "shoop.admin.modules.contact_groups.views.ContactGroupListView", name="contact-group.list" ), ]
def get_urls(self): return [ admin_url( "cms/page/(?P<pk>\d+)/", "shoop.simple_cms.admin_module.views.PageEditView", name="simple_cms.page.edit" ), admin_url( "cms/page/new/", "shoop.simple_cms.admin_module.views.PageEditView", kwargs={"pk": None}, name="simple_cms.page.new" ), admin_url( "cms/pages/", "shoop.simple_cms.admin_module.views.PageListView", name="simple_cms.page.list" ), ]
def get_urls(self): return [ admin_url( "^categories/(?P<pk>\d+)/$", "shoop.admin.modules.categories.views.CategoryEditView", name="category.edit" ), admin_url( "^categories/new/$", "shoop.admin.modules.categories.views.CategoryEditView", kwargs={"pk": None}, name="category.new" ), admin_url( "^categories/$", "shoop.admin.modules.categories.views.CategoryListView", name="category.list" ), ]
def get_urls(self): return [ admin_url( "^orders/(?P<pk>\d+)/create-shipment/$", "shoop.admin.modules.orders.views.OrderCreateShipmentView", name="order.create-shipment", permissions=["shoop.add_shipment"] ), admin_url( "^orders/(?P<pk>\d+)/create-payment/$", "shoop.admin.modules.orders.views.OrderCreatePaymentView", name="order.create-payment", permissions=["shoop.add_payment"] ), admin_url( "^orders/(?P<pk>\d+)/set-status/$", "shoop.admin.modules.orders.views.OrderSetStatusView", name="order.set-status", permissions=get_default_model_permissions(Order) ), admin_url( "^orders/(?P<pk>\d+)/new-log-entry/$", "shoop.admin.modules.orders.views.NewLogEntryView", name="order.new-log-entry", permissions=get_default_model_permissions(Order) ), admin_url( "^orders/(?P<pk>\d+)/$", "shoop.admin.modules.orders.views.OrderDetailView", name="order.detail", permissions=get_default_model_permissions(Order) ), admin_url( "^orders/new/$", "shoop.admin.modules.orders.views.OrderEditView", name="order.new", permissions=["shoop.add_order"] ), admin_url( "^orders/(?P<pk>\d+)/edit/$", "shoop.admin.modules.orders.views.OrderEditView", name="order.edit", permissions=["shoop.change_order"] ), admin_url( "^orders/$", "shoop.admin.modules.orders.views.OrderListView", name="order.list", permissions=get_default_model_permissions(Order), ), ]
def get_urls(self): return [ admin_url( "^service_provider/(?P<pk>\d+)/delete/$", "shoop.admin.modules.service_providers.views.ServiceProviderDeleteView", name="service_provider.delete") ] + get_edit_and_list_urls( url_prefix="^service_provider", view_template= "shoop.admin.modules.service_providers.views.ServiceProvider%sView", name_template="service_provider.%s")
def get_urls(self): return [ admin_url("^contacts/new/$", "shoop.admin.modules.contacts.views.ContactEditView", kwargs={"pk": None}, name="contact.new"), admin_url("^contacts/(?P<pk>\d+)/edit/$", "shoop.admin.modules.contacts.views.ContactEditView", name="contact.edit"), admin_url("^contacts/(?P<pk>\d+)/$", "shoop.admin.modules.contacts.views.ContactDetailView", name="contact.detail"), admin_url( "^contacts/reset-password/(?P<pk>\d+)/$", "shoop.admin.modules.contacts.views.ContactResetPasswordView", name="contact.reset_password"), admin_url("^contacts/$", "shoop.admin.modules.contacts.views.ContactListView", name="contact.list"), ]
def get_urls(self): return [ admin_url("^products/(?P<pk>\d+)/delete/$", "shoop.admin.modules.products.views.ProductDeleteView", name="product.delete"), admin_url( "^products/(?P<pk>\d+)/media/$", "shoop.admin.modules.products.views.ProductMediaEditView", name="product.edit_media"), admin_url("^products/(?P<pk>\d+)/$", "shoop.admin.modules.products.views.ProductEditView", name="product.edit"), admin_url("^products/new/$", "shoop.admin.modules.products.views.ProductEditView", kwargs={"pk": None}, name="product.new"), admin_url("^products/$", "shoop.admin.modules.products.views.ProductListView", name="product.list"), ]
def get_urls(self): return [ admin_url( "^contact-group/(?P<pk>\d+)/delete/$", "shoop.admin.modules.contact_groups.views.ContactGroupDeleteView", name="contact-group.delete" ) ] + get_edit_and_list_urls( url_prefix="^contact-groups", view_template="shoop.admin.modules.contact_groups.views.ContactGroup%sView", name_template="contact-group.%s" )
def get_urls(self): return get_edit_and_list_urls( url_prefix="^carousels", view_template="shoop_carousel.admin.views.Carousel%sView", name_template="carousel.%s" ) + [ admin_url( "^carousel/(?P<pk>\d+)/delete/$", "shoop_carousel.admin.views.CarouselDeleteView", name="carousel.delete" ), ]
def get_urls(self): return [ admin_url("^products/(?P<pk>\d+)/delete/$", "shoop.admin.modules.products.views.ProductDeleteView", name="product.delete"), admin_url( "^products/(?P<pk>\d+)/media/$", "shoop.admin.modules.products.views.ProductMediaEditView", name="product.edit_media"), admin_url( "^products/(?P<pk>\d+)/crosssell/$", "shoop.admin.modules.products.views.ProductCrossSellEditView", name="product.edit_cross_sell"), admin_url( "^products/(?P<pk>\d+)/variation/$", "shoop.admin.modules.products.views.ProductVariationView", name="product.edit_variation"), ] + get_edit_and_list_urls( url_prefix="^products", view_template="shoop.admin.modules.products.views.Product%sView", name_template="product.%s")
def get_urls(self): return [ admin_url( "%s/(?P<pk>\d+)/delete/$" % self.url_prefix, self.view_template % "Delete", name=self.name_template % "delete" ) ] + get_edit_and_list_urls( url_prefix=self.url_prefix, view_template=self.view_template, name_template=self.name_template )
def get_urls(self): return [ admin_url( "^service_provider/(?P<pk>\d+)/delete/$", "shoop.admin.modules.service_providers.views.ServiceProviderDeleteView", name="service_provider.delete" ) ] + get_edit_and_list_urls( url_prefix="^service_provider", view_template="shoop.admin.modules.service_providers.views.ServiceProvider%sView", name_template="service_provider.%s" )
def get_urls(self): return [ admin_url( "^users/(?P<pk>\d+)/change-password/$", "shoop.admin.modules.users.views.UserChangePasswordView", name="user.change-password" ), admin_url( "^users/(?P<pk>\d+)/reset-password/$", "shoop.admin.modules.users.views.UserResetPasswordView", name="user.reset-password" ), admin_url( "^users/(?P<pk>\d+)/change-permissions/$", "shoop.admin.modules.users.views.UserChangePermissionsView", name="user.change-permissions" ), admin_url( "^users/(?P<pk>\d+)/$", "shoop.admin.modules.users.views.UserDetailView", name="user.detail" ), admin_url( "^users/new/$", "shoop.admin.modules.users.views.UserDetailView", kwargs={"pk": None}, name="user.new" ), admin_url( "^users/$", "shoop.admin.modules.users.views.UserListView", name="user.list" ), ]
def get_urls(self): return [ # TODO: Add url for tax dashboard? # urls for Tax admin_url("^taxes/tax/(?P<pk>\d+)/$", "shoop.admin.modules.taxes.views.edit.TaxEditView", name="tax.edit"), admin_url("^taxes/tax/new/$", "shoop.admin.modules.taxes.views.edit.TaxEditView", kwargs={"pk": None}, name="tax.new"), admin_url("^taxes/tax/$", "shoop.admin.modules.taxes.views.list.TaxListView", name="tax.list"), # urls for CustomerTaxGroup admin_url( "^taxes/customer-tax-group/(?P<pk>\d+)/$", "shoop.admin.modules.taxes.views.edit.CustomerTaxGroupEditView", name="customer_tax_group.edit"), admin_url( "^taxes/customer-tax-group/new/$", "shoop.admin.modules.taxes.views.edit.CustomerTaxGroupEditView", kwargs={"pk": None}, name="customer_tax_group.new"), admin_url( "^taxes/customer-tax-group/$", "shoop.admin.modules.taxes.views.list.CustomerTaxGroupListView", name="customer_tax_group.list"), # urls for TaxClass admin_url("^taxes/tax-class/(?P<pk>\d+)/$", "shoop.admin.modules.taxes.views.edit.TaxClassEditView", name="tax_class.edit"), admin_url("^taxes/tax-class/new/$", "shoop.admin.modules.taxes.views.edit.TaxClassEditView", kwargs={"pk": None}, name="tax_class.new"), admin_url("^taxes/tax-class/$", "shoop.admin.modules.taxes.views.list.TaxClassListView", name="tax_class.list"), ]
def get_urls(self): return [ admin_url( "^orders/(?P<pk>\d+)/create-shipment/$", "shoop.admin.modules.orders.views.OrderCreateShipmentView", name="order.create-shipment" ), admin_url( "^orders/(?P<pk>\d+)/create-payment/$", "shoop.admin.modules.orders.views.OrderCreatePaymentView", name="order.create-payment" ), admin_url( "^orders/(?P<pk>\d+)/set-status/$", "shoop.admin.modules.orders.views.OrderSetStatusView", name="order.set-status" ), admin_url( "^orders/(?P<pk>\d+)/new-log-entry/$", "shoop.admin.modules.orders.views.NewLogEntryView", name="order.new-log-entry" ), admin_url( "^orders/(?P<pk>\d+)/$", "shoop.admin.modules.orders.views.OrderDetailView", name="order.detail" ), admin_url( "^orders/new/$", "shoop.admin.modules.orders.views.OrderEditView", name="order.new" ), admin_url( "^orders/(?P<pk>\d+)/edit/$", "shoop.admin.modules.orders.views.OrderEditView", name="order.edit" ), admin_url( "^orders/$", "shoop.admin.modules.orders.views.OrderListView", name="order.list" ), ]
def get_urls(self): return [ admin_url("notify/script-item-editor/", "shoop.notify.admin_module.views.script_item_editor", name="notify.script-item-editor"), admin_url("notify/script/content/(?P<pk>\d+)/", "shoop.notify.admin_module.views.EditScriptContentView", name="notify.script.edit-content"), admin_url("notify/script/(?P<pk>\d+)/", "shoop.notify.admin_module.views.EditScriptView", name="notify.script.edit"), admin_url("notify/script/new/", "shoop.notify.admin_module.views.EditScriptView", kwargs={"pk": None}, name="notify.script.new"), admin_url("notify/script/", "shoop.notify.admin_module.views.ScriptListView", name="notify.script.list"), admin_url("notify/mark-read/(?P<pk>\d+)/$", self.mark_notification_read_view, name="notify.mark-read"), ]
def get_urls(self): return [ admin_url("^mocker/$", "shoop.testing.admin_module.mocker_view.MockerView", name="mocker") ]