コード例 #1
0
ファイル: __init__.py プロジェクト: rrosajp/shuup
 def get_urls(self):
     return [
         admin_url(
             "^importer/imports/$", "shuup.importer.admin_module.import_views.ImportListView", name="importer.import"
         ),
         admin_url(
             r"^importer/imports/(?P<pk>.+)/$",
             "shuup.importer.admin_module.import_views.ImportDetailView",
             name="importer.import.detail",
         ),
         admin_url(
             "^importer/new/$",
             "shuup.importer.admin_module.import_views.ImportView",
             name="importer.import.new",
         ),
         admin_url(
             "^importer/process$",
             "shuup.importer.admin_module.import_views.ImportProcessView",
             name="importer.import_process",
         ),
         admin_url(
             "^importer/example$",
             "shuup.importer.admin_module.import_views.ExampleFileDownloadView",
             name="importer.download_example",
         ),
     ]
コード例 #2
0
ファイル: __init__.py プロジェクト: vinothkumart/django-shuup
 def get_urls(self):
     return [
         admin_url(
             "^adjust-stock/(?P<supplier_id>\d+)/(?P<product_id>\d+)/",
             "shuup.simple_supplier.admin_module.views.process_stock_adjustment",
             name="simple_supplier.stocks"
         ),
         admin_url(
             "^alert-limit/(?P<supplier_id>\d+)/(?P<product_id>\d+)/",
             "shuup.simple_supplier.admin_module.views.process_alert_limit",
             name="simple_supplier.alert_limits"
         ),
         admin_url(
             "^manage-stock/(?P<supplier_id>\d+)/(?P<product_id>\d+)/",
             "shuup.simple_supplier.admin_module.views.process_stock_managed",
             name="simple_supplier.stock_managed"
         ),
         admin_url(
             "^stocks/",
             "shuup.simple_supplier.admin_module.views.StocksListView",
             name="simple_supplier.stocks"
         ),
         admin_url(
             "^list-settings/",
             "shuup.admin.modules.settings.views.ListSettingsView",
             name="simple_supplier.list_settings"
         )
     ]
コード例 #3
0
 def get_urls(self):
     return [
         admin_url(
             "^contacts/new/$",
             "shuup.admin.modules.contacts.views.ContactEditView",
             kwargs={"pk": None},
             name="contact.new",
             permissions=["shuup.add_contact"],
         ),
         admin_url(
             "^contacts/(?P<pk>\d+)/edit/$",
             "shuup.admin.modules.contacts.views.ContactEditView",
             name="contact.edit",
             permissions=["shuup.change_contact"],
         ),
         admin_url(
             "^contacts/(?P<pk>\d+)/$",
             "shuup.admin.modules.contacts.views.ContactDetailView",
             name="contact.detail",
             permissions=get_default_model_permissions(Contact),
         ),
         admin_url(
             "^contacts/reset-password/(?P<pk>\d+)/$",
             "shuup.admin.modules.contacts.views.ContactResetPasswordView",
             name="contact.reset_password",
             permissions=get_default_model_permissions(Contact),
         ),
         admin_url(
             "^contacts/$",
             "shuup.admin.modules.contacts.views.ContactListView",
             name="contact.list",
             permissions=get_default_model_permissions(Contact),
         ),
     ]
コード例 #4
0
ファイル: __init__.py プロジェクト: suutari/shoop
 def get_urls(self):
     permissions = get_default_model_permissions(NotificationModel)
     return [
         admin_url(
             "notify/script-item-editor/",
             "shuup.notify.admin_module.views.script_item_editor",
             name="notify.script-item-editor",
             permissions=permissions
         ),
         admin_url(
             "notify/script/content/(?P<pk>\d+)/",
             "shuup.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="shuup.notify.admin_module.views.Script%sView",
         name_template="notify.script.%s",
         permissions=permissions
     )
コード例 #5
0
ファイル: __init__.py プロジェクト: shawnadelic/shuup
 def get_urls(self):
     return [
         admin_url(
             "^products/(?P<pk>\d+)/delete/$", "shuup.admin.modules.products.views.ProductDeleteView",
             name="product.delete",
             permissions=["shuup.delete_product"]
         ),
         admin_url(
             "^products/(?P<pk>\d+)/media/$", "shuup.admin.modules.products.views.ProductMediaEditView",
             name="product.edit_media",
             permissions=get_default_model_permissions(Product),
         ),
         admin_url(
             "^products/(?P<pk>\d+)/crosssell/$", "shuup.admin.modules.products.views.ProductCrossSellEditView",
             name="product.edit_cross_sell",
             permissions=get_default_model_permissions(ProductCrossSell),
         ),
         admin_url(
             "^products/(?P<pk>\d+)/variation/$", "shuup.admin.modules.products.views.ProductVariationView",
             name="product.edit_variation",
             permissions=get_default_model_permissions(ProductVariationResult),
         ),
         admin_url(
             "^products/(?P<pk>\d+)/package/$", "shuup.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="shuup.admin.modules.products.views.Product%sView",
         name_template="product.%s",
         permissions=get_default_model_permissions(Product)
     )
コード例 #6
0
 def get_urls(self):
     return [
         admin_url(
             r"^menu/your/$", "shuup.admin.modules.menu.views.arrange.AdminMenuArrangeView", name="menu.arrange"
         ),
         admin_url(r"^menu/reset/$", "shuup.admin.modules.menu.views.arrange.AdminMenuResetView", name="menu.reset"),
     ]
コード例 #7
0
def get_urls():
    urls = []
    urls.extend(get_module_urls())

    urls.extend([
        admin_url(r'^$', DashboardView.as_view(), name='dashboard'),
        admin_url(r'^home/$', HomeView.as_view(), name='home'),
        admin_url(r'^wizard/$', WizardView.as_view(), name='wizard'),
        admin_url(r'^tour/$', TourView.as_view(), name='tour'),
        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": "shuup/admin/auth/login.jinja"},
                  name='login',
                  require_authentication=False),
        admin_url(r'^logout/$',
                  auth_views.logout,
                  kwargs={"template_name": "shuup/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)
コード例 #8
0
 def get_urls(self):
     return [
         admin_url(
             "^addons/$",
             "shuup.addons.admin_module.views.AddonListView",
             name="addon.list",
             permissions=get_default_model_permissions(Shop)
         ),
         admin_url(
             "^addons/add/$",
             "shuup.addons.admin_module.views.AddonUploadView",
             name="addon.upload",
             permissions=get_default_model_permissions(Shop)
         ),
         admin_url(
             "^addons/add/confirm/$",
             "shuup.addons.admin_module.views.AddonUploadConfirmView",
             name="addon.upload_confirm",
             permissions=get_default_model_permissions(Shop)
         ),
         admin_url(
             "^addons/reload/$",
             "shuup.addons.admin_module.views.ReloadView",
             name="addon.reload",
             permissions=get_default_model_permissions(Shop)
         ),
     ]
コード例 #9
0
 def get_urls(self):
     return [
         admin_url("^products/(?P<pk>\d+)/delete/$",
                   "shuup.admin.modules.products.views.ProductDeleteView",
                   name="product.delete",
                   permissions=["shuup.delete_product"]),
         admin_url(
             "^products/(?P<pk>\d+)/media/$",
             "shuup.admin.modules.products.views.ProductMediaEditView",
             name="product.edit_media",
             permissions=get_default_model_permissions(Product),
         ),
         admin_url(
             "^products/(?P<pk>\d+)/crosssell/$",
             "shuup.admin.modules.products.views.ProductCrossSellEditView",
             name="product.edit_cross_sell",
             permissions=get_default_model_permissions(ProductCrossSell),
         ),
         admin_url(
             "^products/(?P<pk>\d+)/variation/$",
             "shuup.admin.modules.products.views.ProductVariationView",
             name="product.edit_variation",
             permissions=get_default_model_permissions(
                 ProductVariationResult),
         ),
         admin_url(
             "^products/(?P<pk>\d+)/package/$",
             "shuup.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="shuup.admin.modules.products.views.Product%sView",
         name_template="product.%s",
         permissions=get_default_model_permissions(Product))
コード例 #10
0
ファイル: __init__.py プロジェクト: shawnadelic/shuup
 def get_urls(self):
     return [
         admin_url(
             "^adjust-stock/(?P<supplier_id>\d+)/(?P<product_id>\d+)/",
             "shuup.simple_supplier.admin_module.views.process_stock_adjustment",
             name="simple_supplier.stocks",
             permissions=get_default_model_permissions(StockAdjustment)
         ),
         admin_url(
             "^alert-limit/(?P<supplier_id>\d+)/(?P<product_id>\d+)/",
             "shuup.simple_supplier.admin_module.views.process_alert_limit",
             name="simple_supplier.alert_limits",
             permissions=get_default_model_permissions(StockAdjustment)
         ),
         admin_url(
             "^stocks/",
             "shuup.simple_supplier.admin_module.views.StocksListView",
             name="simple_supplier.stocks"
         ),
         admin_url(
             "^list-settings/",
             "shuup.admin.modules.settings.views.ListSettingsView",
             name="simple_supplier.list_settings",
             permissions=get_default_model_permissions(StockAdjustment),
         )
     ]
コード例 #11
0
ファイル: __init__.py プロジェクト: NamiStudio/shuup
 def get_urls(self):
     return [
         admin_url(
             "^contacts/new/$",
             "shuup.admin.modules.contacts.views.ContactEditView",
             kwargs={"pk": None},
             name="contact.new",
             permissions=["shuup.add_contact"],
         ),
         admin_url(
             "^contacts/(?P<pk>\d+)/edit/$",
             "shuup.admin.modules.contacts.views.ContactEditView",
             name="contact.edit",
             permissions=["shuup.change_contact"],
         ),
         admin_url(
             "^contacts/(?P<pk>\d+)/$",
             "shuup.admin.modules.contacts.views.ContactDetailView",
             name="contact.detail",
             permissions=get_default_model_permissions(Contact),
         ),
         admin_url(
             "^contacts/reset-password/(?P<pk>\d+)/$",
             "shuup.admin.modules.contacts.views.ContactResetPasswordView",
             name="contact.reset_password",
             permissions=get_default_model_permissions(Contact),
         ),
         admin_url(
             "^contacts/$",
             "shuup.admin.modules.contacts.views.ContactListView",
             name="contact.list",
             permissions=get_default_model_permissions(Contact),
         ),
     ]
コード例 #12
0
ファイル: __init__.py プロジェクト: ahmadzai/shuup
 def get_urls(self):
     return [
         admin_url(
             "^addons/$",
             "shuup.addons.admin_module.views.AddonListView",
             name="addon.list",
             permissions=get_default_model_permissions(Shop)
         ),
         admin_url(
             "^addons/add/$",
             "shuup.addons.admin_module.views.AddonUploadView",
             name="addon.upload",
             permissions=get_default_model_permissions(Shop)
         ),
         admin_url(
             "^addons/add/confirm/$",
             "shuup.addons.admin_module.views.AddonUploadConfirmView",
             name="addon.upload_confirm",
             permissions=get_default_model_permissions(Shop)
         ),
         admin_url(
             "^addons/reload/$",
             "shuup.addons.admin_module.views.ReloadView",
             name="addon.reload",
             permissions=get_default_model_permissions(Shop)
         ),
     ]
コード例 #13
0
 def get_urls(self):
     return [
         admin_url("^media/$",
                   "shuup.admin.modules.media.views.MediaBrowserView",
                   name="media.browse"),
         admin_url("^media/upload/$",
                   "shuup.admin.modules.media.views.media_upload",
                   name="media.upload")
     ]
コード例 #14
0
ファイル: __init__.py プロジェクト: tapan-ghosh/shuup
 def get_urls(self):
     return [
         admin_url(r"^carts/$",
                   "shuup.front.admin_module.carts.views.CartListView",
                   name="cart.list"),
         admin_url(r"^carts/(?P<pk>\d+)/$",
                   "shuup.front.admin_module.carts.views.CartDetailView",
                   name="cart.detail"),
     ]
コード例 #15
0
 def get_urls(self):
     return [
         admin_url(
             r"^product_reviews/$",
             "shuup_product_reviews.admin_module.views.ProductReviewListView",
             name="product_reviews.list"),
         admin_url(r"^product_reviews/list-settings/",
                   "shuup.admin.modules.settings.views.ListSettingsView",
                   name="product_reviews.list_settings")
     ]
コード例 #16
0
 def get_urls(self):
     return [
         admin_url(
             r"^vendor_reviews/$",
             "shuup_vendor_reviews.admin_module.views.VendorReviewListView",
             name="vendor_reviews.list"),
         admin_url(r"^vendor_reviews/list-settings/",
                   "shuup.admin.modules.settings.views.ListSettingsView",
                   name="vendor_reviews.list_settings")
     ]
コード例 #17
0
ファイル: __init__.py プロジェクト: vinothkumart/django-shuup
 def get_urls(self):
     return [
         admin_url("^users/(?P<pk>\d+)/change-password/$",
                   "shuup.admin.modules.users.views.UserChangePasswordView",
                   name="user.change-password"),
         admin_url("^users/(?P<pk>\d+)/reset-password/$",
                   "shuup.admin.modules.users.views.UserResetPasswordView",
                   name="user.reset-password"),
         admin_url(
             "^users/(?P<pk>\d+)/change-permissions/$",
             "shuup.admin.modules.users.views.UserChangePermissionsView",
             name="user.change-permissions"),
         admin_url("^users/(?P<pk>\d+)/$",
                   "shuup.admin.modules.users.views.UserDetailView",
                   name="user.detail"),
         admin_url("^users/new/$",
                   "shuup.admin.modules.users.views.UserDetailView",
                   kwargs={"pk": None},
                   name="user.new"),
         admin_url("^users/$",
                   "shuup.admin.modules.users.views.UserListView",
                   name="user.list"),
         admin_url("^users/(?P<pk>\d+)/login/$",
                   "shuup.admin.modules.users.views.LoginAsUserView",
                   name="user.login-as"),
         admin_url("^users/(?P<pk>\d+)/login/staff/$",
                   "shuup.admin.modules.users.views.LoginAsStaffUserView",
                   name="user.login-as-staff"),
         admin_url("^contacts/list-settings/",
                   "shuup.admin.modules.settings.views.ListSettingsView",
                   name="user.list_settings")
     ]
コード例 #18
0
 def get_urls(self):
     return [
         admin_url(
             "^printouts/delivery/(?P<shipment_pk>\d+)/$",
             "shuup.order_printouts.admin_module.views.get_delivery_pdf",
             name="printouts.delivery_pdf"),
         admin_url(
             "^printouts/confirmation/(?P<order_pk>\d+)/$",
             "shuup.order_printouts.admin_module.views.get_confirmation_pdf",
             name="printouts.confirmation_pdf"),
     ]
コード例 #19
0
 def get_urls(self):
     return [
         admin_url(
             r"^menu/supplier/$",
             "shuup.admin.modules.menu.views.arrange.SupplierMenuArrangeView",
             name="menu.arrange_supplier"),
         admin_url(
             r"^menu/reset/supplier/$",
             "shuup.admin.modules.menu.views.arrange.SupplierMenuResetView",
             name="menu.reset_supplier")
     ]
コード例 #20
0
ファイル: __init__.py プロジェクト: yurkobb/shuup
 def get_urls(self):
     return [
         admin_url("^addons/$", "shuup.addons.admin_module.views.AddonListView", name="addon.list"),
         admin_url("^addons/add/$", "shuup.addons.admin_module.views.AddonUploadView", name="addon.upload"),
         admin_url(
             "^addons/add/confirm/$",
             "shuup.addons.admin_module.views.AddonUploadConfirmView",
             name="addon.upload_confirm",
         ),
         admin_url("^addons/reload/$", "shuup.addons.admin_module.views.ReloadView", name="addon.reload"),
     ]
コード例 #21
0
 def get_urls(self):
     return [
         admin_url(
             r"^categories/organize/$",
             "shuup_category_organizer.admin_module.views.CategoryOrganizeView",
             name="category.organize"),
         admin_url(
             r"^categories/(?P<pk>\d+)/duplicate/$",
             "shuup_category_organizer.admin_module.views.CategoryDuplicateView",
             name="category.duplicate")
     ]
コード例 #22
0
ファイル: __init__.py プロジェクト: rrosajp/shuup
 def get_urls(self):
     return [
         admin_url(r"^shops/(?P<pk>\d+)/enable/$",
                   "shuup.admin.modules.shops.views.ShopEnablerView",
                   name="shop.enable"),
         admin_url(r"^shops/(?P<pk>\d+)/select/$",
                   "shuup.admin.modules.shops.views.ShopSelectView",
                   name="shop.select"),
     ] + get_edit_and_list_urls(
         url_prefix="^shops",
         view_template="shuup.admin.modules.shops.views.Shop%sView",
         name_template="shop.%s")
コード例 #23
0
 def get_urls(self):  # doccov: ignore
     return [
         admin_url("^xtheme/guide/(?P<theme_identifier>.+?)/",
                   "shuup.xtheme.admin_module.views.ThemeGuideTemplateView",
                   name="xtheme.guide"),
         admin_url("^xtheme/configure/(?P<theme_identifier>.+?)/",
                   "shuup.xtheme.admin_module.views.ThemeConfigDetailView",
                   name="xtheme.config_detail"),
         admin_url("^xtheme/theme",
                   "shuup.xtheme.admin_module.views.ThemeConfigView",
                   name="xtheme.config")
     ]
コード例 #24
0
ファイル: 53081___init__.py プロジェクト: wanuop/shuup
 def get_urls(self):
     return [
         admin_url("^importer/import$",
                   "shuup.importer.admin_module.import_views.ImportView",
                   name="importer.import",
                   permissions=get_default_model_permissions(Shop)),
         admin_url(
             "^importer/import/process$",
             "shuup.importer.admin_module.import_views.ImportProcessView",
             name="importer.import_process",
             permissions=get_default_model_permissions(Shop)),
     ]
コード例 #25
0
 def get_urls(self):
     return [
         admin_url("^gdpr/$",
                   "shuup.gdpr.admin_module.views.GDPRView",
                   name="gdpr.settings"),
         admin_url("^gdpr/contact/(?P<pk>\d+)/anonymize/$",
                   "shuup.gdpr.admin_module.views.GDPRAnonymizeView",
                   name="gdpr.anonymize"),
         admin_url("^gdpr/contact/(?P<pk>\d+)/download/$",
                   "shuup.gdpr.admin_module.views.GDPRDownloadDataView",
                   name="gdpr.download_data")
     ]
コード例 #26
0
 def get_urls(self):
     return [
         admin_url(
             r"^product_reviews/$",
             "shuup_product_reviews.admin_module.views.ProductReviewListView",
             name="product_reviews.list",
             permissions=get_default_model_permissions(ProductReview)),
         admin_url(r"^product_reviews/list-settings/",
                   "shuup.admin.modules.settings.views.ListSettingsView",
                   name="product_reviews.list_settings",
                   permissions=get_default_model_permissions(ProductReview))
     ]
コード例 #27
0
ファイル: __init__.py プロジェクト: dragonsg/shuup-1
 def get_urls(self):
     return [
         admin_url(
             "^adjust-stock/(?P<supplier_id>\d+)/(?P<product_id>\d+)/",
             "shuup.simple_supplier.admin_module.views.process_stock_adjustment",
             name="simple_supplier.stocks",
             permissions=get_default_model_permissions(StockAdjustment)),
         admin_url(
             "^stocks/",
             "shuup.simple_supplier.admin_module.views.StocksListView",
             name="simple_supplier.stocks"),
     ]
コード例 #28
0
ファイル: __init__.py プロジェクト: TryTestspace/shuup
 def get_urls(self):
     return [
         admin_url("^importer/import$",
                   "shuup.importer.admin_module.import_views.ImportView",
                   name="importer.import",
                   permissions=["shuup.change_shop"]),
         admin_url(
             "^importer/import/process$",
             "shuup.importer.admin_module.import_views.ImportProcessView",
             name="importer.import_process",
             permissions=["shuup.change_shop"]),
     ]
コード例 #29
0
ファイル: __init__.py プロジェクト: Bobby00/boss_shuup
 def get_urls(self):
     return get_edit_and_list_urls(
         url_prefix="^tasks",
         view_template="shuup.tasks.admin_module.views.Task%sView",
         name_template="task.%s") + [
             admin_url(r"^tasks/(?P<pk>\d+)/delete/$",
                       "shuup.tasks.admin_module.views.TaskDeleteView",
                       name="task.delete"),
             admin_url(r"^tasks/(?P<pk>\d+)/set_status/$",
                       "shuup.tasks.admin_module.views.TaskSetStatusView",
                       name="task.set_status"),
         ]
コード例 #30
0
 def get_urls(self):  # doccov: ignore
     return [
         admin_url(
             "^xtheme/(?P<theme_identifier>.+?)/",
             "shuup.xtheme.admin_module.views.ThemeConfigDetailView",
             name="xtheme.config_detail",
             permissions=get_default_model_permissions(ThemeSettings)),
         admin_url("^xtheme/",
                   "shuup.xtheme.admin_module.views.ThemeConfigView",
                   name="xtheme.config",
                   permissions=get_default_model_permissions(ThemeSettings))
     ]
コード例 #31
0
 def get_urls(self):
     urls = super(ShippingRegionModule, self).get_urls()
     urls = urls + [
         admin_url("%s/import/$" % self.url_prefix,
                   self.view_template % "Import",
                   name=self.name_template % "import",
                   permissions=self.get_required_permissions()),
         admin_url("%s/export/$" % self.url_prefix,
                   self.view_template % "Export",
                   name=self.name_template % "export",
                   permissions=self.get_required_permissions())
     ]
     return urls
コード例 #32
0
 def get_urls(self):
     return [
         admin_url(
             r"^menu/staff/$",
             "shuup.admin.modules.menu.views.arrange.StaffMenuArrangeView",
             name="menu.arrange_staff",
         ),
         admin_url(
             r"^menu/reset/staff/$",
             "shuup.admin.modules.menu.views.arrange.StaffMenuResetView",
             name="menu.reset_staff",
         ),
     ]
コード例 #33
0
ファイル: __init__.py プロジェクト: NamiStudio/shuup
 def get_urls(self):
     return [
         admin_url(
             "^printouts/delivery/(?P<shipment_pk>\d+)/$",
             "shuup.order_printouts.admin_module.views.get_delivery_pdf",
             name="printouts.delivery_pdf"
         ),
         admin_url(
             "^printouts/confirmation/(?P<order_pk>\d+)/$",
             "shuup.order_printouts.admin_module.views.get_confirmation_pdf",
             name="printouts.confirmation_pdf"
         ),
     ]
コード例 #34
0
 def get_urls(self):
     return [
         admin_url(
             "^pagseguro/payment/refresh/$",
             "shuup_pagseguro.admin.views.PaymentRefreshView",
             name="pagseguro.payment_refresh"
         ),
         admin_url(
             "^pagseguro/$",
             "shuup_pagseguro.admin.views.DashboardView",
             name="pagseguro.dashboard"
         ),
     ]
コード例 #35
0
ファイル: test_module.py プロジェクト: NamiStudio/shuup
 def get_urls(self):
     return [
         admin_url(
             "test/$", OkAction,
             name="test-auth", require_authentication=True),
         admin_url(
             "test2/$", "shuup_tests.admin.fixtures.test_module.OkAction",
             name="test-unauth", require_authentication=False),
         admin_url(
             "test3/$", "shuup_tests.admin.fixtures.test_module.OkAction",
             name="test-perm", require_authentication=True,
             permissions=("bogus-permission",)),
     ]
コード例 #36
0
 def get_urls(self):
     return [
         admin_url(
             r"^categories/organize/$",
             "shuup_category_organizer.admin_module.views.CategoryOrganizeView",
             name="category.organize",
             permissions=get_default_model_permissions(Category)),
         admin_url(
             r"^categories/(?P<pk>\d+)/duplicate/$",
             "shuup_category_organizer.admin_module.views.CategoryDuplicateView",
             name="category.duplicate",
             permissions=get_default_model_permissions(Category))
     ]
コード例 #37
0
ファイル: __init__.py プロジェクト: ruqaiya/shuup
 def get_urls(self):
     return [
         admin_url(
             "^media/$",
             "shuup.admin.modules.media.views.MediaBrowserView",
             name="media.browse"
         ),
         admin_url(
             "^media/upload/$",
             "shuup.admin.modules.media.views.media_upload",
             name="media.upload"
         )
     ]
コード例 #38
0
ファイル: __init__.py プロジェクト: ahmadzai/shuup
 def get_urls(self):
     return [
         admin_url(
             "^adjust-stock/(?P<supplier_id>\d+)/(?P<product_id>\d+)/",
             "shuup.simple_supplier.admin_module.views.process_stock_adjustment",
             name="simple_supplier.stocks",
             permissions=get_default_model_permissions(StockAdjustment)
         ),
         admin_url(
             "^stocks/",
             "shuup.simple_supplier.admin_module.views.StocksListView",
             name="simple_supplier.stocks"
         ),
     ]
コード例 #39
0
ファイル: __init__.py プロジェクト: NamiStudio/shuup
 def get_urls(self):  # doccov: ignore
     return [
         admin_url(
             "^xtheme/(?P<theme_identifier>.+?)/",
             "shuup.xtheme.admin_module.views.ThemeConfigDetailView",
             name="xtheme.config_detail",
             permissions=get_default_model_permissions(ThemeSettings)
         ),
         admin_url(
             "^xtheme/",
             "shuup.xtheme.admin_module.views.ThemeConfigView",
             name="xtheme.config",
             permissions=get_default_model_permissions(ThemeSettings)
         )
     ]
コード例 #40
0
ファイル: __init__.py プロジェクト: suutari/shoop
 def get_urls(self):
     return [
         admin_url(
             "^importer/import$",
             "shuup.importer.admin_module.import_views.ImportView",
             name="importer.import",
             permissions=get_default_model_permissions(Shop)
         ),
         admin_url(
             "^importer/import/process$",
             "shuup.importer.admin_module.import_views.ImportProcessView",
             name="importer.import_process",
             permissions=get_default_model_permissions(Shop)
         ),
     ]
コード例 #41
0
ファイル: __init__.py プロジェクト: ruqaiya/shuup
 def get_urls(self):
     return [
         admin_url(
             "^shops/(?P<pk>\d+)/enable/$",
             "shuup.admin.modules.shops.views.ShopEnablerView",
             name="shop.enable"
         ),
         admin_url(
             "^shops/(?P<pk>\d+)/select/$",
             "shuup.admin.modules.shops.views.ShopSelectView",
             name="shop.select"
         ),
     ] + get_edit_and_list_urls(
         url_prefix="^shops",
         view_template="shuup.admin.modules.shops.views.Shop%sView",
         name_template="shop.%s"
     )
コード例 #42
0
ファイル: __init__.py プロジェクト: ruqaiya/shuup
 def get_urls(self):
     return [
         admin_url(
             "^system/telemetry/$",
             "shuup.admin.modules.system.views.telemetry.TelemetryView",
             name="telemetry"
         )
     ]
コード例 #43
0
ファイル: __init__.py プロジェクト: ruqaiya/shuup
 def get_urls(self):
     return [
         admin_url(
             "^sample_data/$",
             "shuup.testing.modules.sample_data.views.ConsolidateSampleObjectsView",
             name="sample_data"
         )
     ]
コード例 #44
0
ファイル: __init__.py プロジェクト: ruqaiya/shuup
 def get_urls(self):
     return [
         admin_url(
             "^reports/$",
             "shuup.reports.admin_module.views.ReportView",
             name="reports.list"
         )
     ]
コード例 #45
0
ファイル: __init__.py プロジェクト: ruqaiya/shuup
 def get_urls(self):
     return [
         admin_url(
             "^mocker/$",
             "shuup.testing.modules.mocker.mocker_view.MockerView",
             name="mocker"
         )
     ]
コード例 #46
0
ファイル: __init__.py プロジェクト: ruqaiya/shuup
 def get_urls(self):
     return [
         admin_url(
             "^categories/(?P<pk>\d+)/copy-visibility/$",
             "shuup.admin.modules.categories.views.CategoryCopyVisibilityView",
             name="category.copy_visibility"
         ),
         admin_url(
             "^categories/(?P<pk>\d+)/delete/$",
             "shuup.admin.modules.categories.views.CategoryDeleteView",
             name="category.delete"
         )
     ] + get_edit_and_list_urls(
         url_prefix="^categories",
         view_template="shuup.admin.modules.categories.views.Category%sView",
         name_template="category.%s"
     )
コード例 #47
0
ファイル: __init__.py プロジェクト: ruqaiya/shuup
 def get_urls(self):
     return [
         admin_url(
             "^carts/$",
             "shuup.front.admin_module.carts.views.CartListView",
             name="cart.list"
         ),
     ]
コード例 #48
0
ファイル: __init__.py プロジェクト: ruqaiya/shuup
 def get_urls(self):
     return get_edit_and_list_urls(
         url_prefix="^tasks",
         view_template="shuup.tasks.admin_module.views.Task%sView",
         name_template="task.%s"
     ) + [
         admin_url(
             "^tasks/(?P<pk>\d+)/delete/$",
             "shuup.tasks.admin_module.views.TaskDeleteView",
             name="task.delete"
         ),
         admin_url(
             "^tasks/(?P<pk>\d+)/set_status/$",
             "shuup.tasks.admin_module.views.TaskSetStatusView",
             name="task.set_status"
         ),
     ]
コード例 #49
0
ファイル: __init__.py プロジェクト: ruqaiya/shuup
 def get_urls(self):
     return [
         admin_url(
             "^importer/import$",
             "shuup.importer.admin_module.import_views.ImportView",
             name="importer.import"
         ),
         admin_url(
             "^importer/import/process$",
             "shuup.importer.admin_module.import_views.ImportProcessView",
             name="importer.import_process"
         ),
         admin_url(
             "^importer/example$",
             "shuup.importer.admin_module.import_views.ExampleFileDownloadView",
             name="importer.download_example"
         ),
     ]
コード例 #50
0
ファイル: __init__.py プロジェクト: gurch101/shuup
 def get_urls(self):
     return [
         admin_url(
             "^system/api/$",
             "shuup.api.admin_module.views.permissions.APIPermissionView",
             name="api_permission",
             permissions=get_default_model_permissions(Shop)
         )
     ]
コード例 #51
0
ファイル: __init__.py プロジェクト: gurch101/shuup
 def get_urls(self):
     return [
         admin_url(
             "^settings/$",
             "shuup.admin.modules.settings.views.SystemSettingsView",
             name="settings.list",
             permissions=get_default_model_permissions(Shop)
         ),
     ]
コード例 #52
0
ファイル: __init__.py プロジェクト: hrayr-artunyan/shuup
 def get_urls(self):
     return [
         admin_url(
             "^carts/$",
             "shuup.front.admin_module.carts.views.CartListView",
             name="cart.list",
             permissions=get_default_model_permissions(StoredBasket),
         ),
     ]
コード例 #53
0
ファイル: __init__.py プロジェクト: gurch101/shuup
 def get_urls(self):
     return [
         admin_url(
             "^media/$",
             "shuup.admin.modules.media.views.MediaBrowserView",
             name="media.browse",
             permissions=get_default_model_permissions(File),
         ),
     ]
コード例 #54
0
ファイル: __init__.py プロジェクト: NamiStudio/shuup
 def get_urls(self):
     return [
         admin_url(
             "^mocker/$",
             "shuup.testing.admin_module.mocker_view.MockerView",
             name="mocker",
             permissions=get_default_model_permissions(Shop)
         )
     ]
コード例 #55
0
ファイル: __init__.py プロジェクト: ruqaiya/shuup
 def get_urls(self):  # doccov: ignore
     return [
         admin_url(
             "^xtheme/guide/(?P<theme_identifier>.+?)/",
             "shuup.xtheme.admin_module.views.ThemeGuideTemplateView",
             name="xtheme.guide"
         ),
         admin_url(
             "^xtheme/configure/(?P<theme_identifier>.+?)/",
             "shuup.xtheme.admin_module.views.ThemeConfigDetailView",
             name="xtheme.config_detail"
         ),
         admin_url(
             "^xtheme/theme",
             "shuup.xtheme.admin_module.views.ThemeConfigView",
             name="xtheme.config"
         )
     ]
コード例 #56
0
ファイル: __init__.py プロジェクト: ruqaiya/shuup
 def get_urls(self):
     return [
         admin_url(
             "^gdpr/$",
             "shuup.gdpr.admin_module.views.GDPRView",
             name="gdpr.settings"
         ),
         admin_url(
             "^gdpr/contact/(?P<pk>\d+)/anonymize/$",
             "shuup.gdpr.admin_module.views.GDPRAnonymizeView",
             name="gdpr.anonymize"
         ),
         admin_url(
             "^gdpr/contact/(?P<pk>\d+)/download/$",
             "shuup.gdpr.admin_module.views.GDPRDownloadDataView",
             name="gdpr.download_data"
         )
     ]
コード例 #57
0
ファイル: __init__.py プロジェクト: suutari/shoop
 def get_urls(self):
     return [
         admin_url(
             "^system/telemetry/$",
             "shuup.admin.modules.system.views.telemetry.TelemetryView",
             name="telemetry",
             permissions=get_default_model_permissions(Shop)
         ),
     ]
コード例 #58
0
ファイル: __init__.py プロジェクト: gurch101/shuup
 def get_urls(self):
     return [
         admin_url(
             "^sample_data/$",
             "shuup.admin.modules.sample_data.views.ConsolidateSampleObjectsView",
             name="sample_data",
             permissions=get_default_model_permissions(Shop)
         )
     ]
コード例 #59
0
ファイル: __init__.py プロジェクト: shawnadelic/shuup
    def get_urls(self):
        permissions = get_default_model_permissions(get_user_model())

        return [
            admin_url(
                "^users/(?P<pk>\d+)/change-password/$",
                "shuup.admin.modules.users.views.UserChangePasswordView",
                name="user.change-password",
                permissions=permissions
            ),
            admin_url(
                "^users/(?P<pk>\d+)/reset-password/$",
                "shuup.admin.modules.users.views.UserResetPasswordView",
                name="user.reset-password",
                permissions=permissions
            ),
            admin_url(
                "^users/(?P<pk>\d+)/change-permissions/$",
                "shuup.admin.modules.users.views.UserChangePermissionsView",
                name="user.change-permissions",
                permissions=["auth.change_permission"]
            ),
            admin_url(
                "^users/(?P<pk>\d+)/$",
                "shuup.admin.modules.users.views.UserDetailView",
                name="user.detail",
                permissions=permissions
            ),
            admin_url(
                "^users/new/$",
                "shuup.admin.modules.users.views.UserDetailView",
                kwargs={"pk": None},
                name="user.new",
                permissions=permissions
            ),
            admin_url(
                "^users/$",
                "shuup.admin.modules.users.views.UserListView",
                name="user.list",
                permissions=permissions
            ),
            admin_url(
                "^users/(?P<pk>\d+)/login/$",
                "shuup.admin.modules.users.views.LoginAsUserView",
                name="user.login-as",
                permissions=permissions
            ),
            admin_url(
                "^contacts/list-settings/",
                "shuup.admin.modules.settings.views.ListSettingsView",
                name="user.list_settings",
                permissions=permissions,
            )
        ]