本文整理汇总了Python中shuup.admin.utils.urls.get_edit_and_list_urls函数的典型用法代码示例。如果您正苦于以下问题:Python get_edit_and_list_urls函数的具体用法?Python get_edit_and_list_urls怎么用?Python get_edit_and_list_urls使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_edit_and_list_urls函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_urls
def get_urls(self):
return get_edit_and_list_urls(
url_prefix="^currencies",
view_template="shuup.admin.modules.currencies.views.Currency%sView",
name_template="currency.%s",
permissions=get_default_model_permissions(Currency)
)
示例2: get_urls
def get_urls(self):
return get_edit_and_list_urls(
url_prefix="^categories",
view_template="shuup.admin.modules.categories.views.Category%sView",
name_template="category.%s",
permissions=get_default_model_permissions(Category),
)
示例3: get_urls
def get_urls(self):
return get_edit_and_list_urls(
url_prefix="^shops",
view_template="shuup.admin.modules.shops.views.Shop%sView",
name_template="shop.%s",
permissions=get_default_model_permissions(Shop)
)
示例4: get_urls
def get_urls(self):
return get_edit_and_list_urls(
url_prefix="^Manufacturers",
view_template="shuup.admin.modules.manufacturers.views.Manufacturer%sView",
name_template="manufacturers.%s",
permissions=get_default_model_permissions(Manufacturer),
)
示例5: get_urls
def get_urls(self):
return get_edit_and_list_urls(
url_prefix="^product-types",
view_template="shuup.admin.modules.product_types.views.ProductType%sView",
name_template="product_type.%s",
permissions=get_default_model_permissions(ProductType),
)
示例6: get_urls
def get_urls(self):
return get_edit_and_list_urls(
url_prefix="^default-tax/rules",
view_template="shuup.default_tax.admin_module.views.TaxRule%sView",
name_template="default_tax.tax_rule.%s",
permissions=get_default_model_permissions(TaxRule)
)
示例7: get_urls
def get_urls(self):
return get_edit_and_list_urls(
url_prefix="^cms/page",
view_template="shuup.simple_cms.admin_module.views.Page%sView",
name_template="simple_cms.page.%s",
permissions=get_default_model_permissions(Page)
)
示例8: get_urls
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
)
示例9: get_urls
def get_urls(self):
# TODO: Add url for tax dashboard?
tax_urls = get_edit_and_list_urls(
url_prefix="^taxes/tax",
view_template="shuup.admin.modules.taxes.views.Tax%sView",
name_template="tax.%s"
)
tax_group_urls = get_edit_and_list_urls(
url_prefix="^taxes/customer-tax-group",
view_template="shuup.admin.modules.taxes.views.CustomerTaxGroup%sView",
name_template="customer_tax_group.%s"
)
tax_class_urls = get_edit_and_list_urls(
url_prefix="^taxes/tax-class",
view_template="shuup.admin.modules.taxes.views.TaxClass%sView",
name_template="tax_class.%s"
)
return tax_urls + tax_group_urls + tax_class_urls
示例10: get_urls
def get_urls(self):
basket_campaign_urls = get_edit_and_list_urls(
url_prefix="^campaigns/basket",
view_template="shuup.campaigns.admin_module.views.BasketCampaign%sView",
name_template="basket_campaign.%s"
)
coupon_urls = get_edit_and_list_urls(
url_prefix="^campaigns/coupons",
view_template="shuup.campaigns.admin_module.views.Coupon%sView",
name_template="coupon.%s"
)
catalog_campaign_urls = get_edit_and_list_urls(
url_prefix="^campaigns/catalog",
view_template="shuup.campaigns.admin_module.views.CatalogCampaign%sView",
name_template="catalog_campaign.%s"
) if _show_catalog_campaigns_in_admin() else []
return basket_campaign_urls + catalog_campaign_urls + coupon_urls
示例11: get_urls
def get_urls(self):
return get_edit_and_list_urls(
url_prefix="^carousels",
view_template="shuup_carousel.admin.views.Carousel%sView",
name_template="carousel.%s"
) + [
admin_url(
"^carousel/(?P<pk>\d+)/delete/$",
"shuup_carousel.admin.views.CarouselDeleteView",
name="carousel.delete"
),
]
示例12: get_urls
def get_urls(self):
basket_campaign_urls = get_edit_and_list_urls(
url_prefix="^campaigns/basket",
view_template="shuup.campaigns.admin_module.views.BasketCampaign%sView",
name_template="basket_campaign.%s",
permissions=get_default_model_permissions(BasketCampaign)
)
coupon_urls = get_edit_and_list_urls(
url_prefix="^campaigns/coupons",
view_template="shuup.campaigns.admin_module.views.Coupon%sView",
name_template="coupon.%s",
permissions=get_default_model_permissions(Coupon)
)
return basket_campaign_urls + coupon_urls + get_edit_and_list_urls(
url_prefix="^campaigns/catalog",
view_template="shuup.campaigns.admin_module.views.CatalogCampaign%sView",
name_template="catalog_campaign.%s",
permissions=get_default_model_permissions(CatalogCampaign)
)
示例13: get_urls
def get_urls(self):
return get_edit_and_list_urls(
url_prefix="^xtheme/snippet",
view_template="shuup.xtheme.admin_module.views.Snippet%sView",
name_template="xtheme_snippet.%s"
) + [
admin_url(
"^xtheme/snippet/(?P<pk>\d+)/delete/$",
"shuup.xtheme.admin_module.views.SnippetDeleteView",
name="xtheme_snippet.delete"
)
]
示例14: get_urls
def get_urls(self):
from shuup.admin.urls import admin_url
delete = admin_url(
"^discounts_availability_exception/(?P<pk>\d+)/delete/$",
"shuup.discounts.admin.views.AvailabilityExceptionDeleteView",
name="discounts_availability_exception.delete"
)
return [delete] + get_edit_and_list_urls(
url_prefix="^discounts_availability_exception",
view_template="shuup.discounts.admin.views.AvailabilityException%sView",
name_template="discounts_availability_exception.%s"
)
示例15: get_urls
def get_urls(self):
return get_edit_and_list_urls(
url_prefix="^carousels",
view_template="shuup.front.apps.carousel.admin_module.views.Carousel%sView",
name_template="carousel.%s",
permissions=get_default_model_permissions(Carousel)
) + [
admin_url(
"^carousel/(?P<pk>\d+)/delete/$",
"shuup.front.apps.carousel.admin_module.views.CarouselDeleteView",
name="carousel.delete",
permissions=get_default_model_permissions(Carousel)
),
]