本文整理汇总了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函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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)
)
开发者ID:gurch101,项目名称:shuup,代码行数:7,代码来源:__init__.py
示例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),
)
开发者ID:ahmadzai,项目名称:shuup,代码行数:7,代码来源:__init__.py
示例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)
)
开发者ID:NamiStudio,项目名称:shuup,代码行数:7,代码来源:__init__.py
示例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),
)
开发者ID:ahmadzai,项目名称:shuup,代码行数:7,代码来源:__init__.py
示例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),
)
开发者ID:shawnadelic,项目名称:shuup,代码行数:7,代码来源:__init__.py
示例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)
)
开发者ID:ahmadzai,项目名称:shuup,代码行数:7,代码来源:__init__.py
示例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)
)
开发者ID:ahmadzai,项目名称:shuup,代码行数:7,代码来源:__init__.py
示例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
)
开发者ID:suutari,项目名称:shoop,代码行数:27,代码来源:__init__.py
示例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
开发者ID:ruqaiya,项目名称:shuup,代码行数:18,代码来源:__init__.py
示例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
开发者ID:ruqaiya,项目名称:shuup,代码行数:20,代码来源:__init__.py
示例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"
),
]
开发者ID:Pikkupomo,项目名称:shoop-carousel,代码行数:12,代码来源:__init__.py
示例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)
)
开发者ID:suutari,项目名称:shoop,代码行数:21,代码来源:__init__.py
示例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"
)
]
开发者ID:ruqaiya,项目名称:shuup,代码行数:12,代码来源:__init__.py
示例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"
)
开发者ID:ruqaiya,项目名称:shuup,代码行数:13,代码来源:_exceptions.py
示例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)
),
]
开发者ID:suutari,项目名称:shoop,代码行数:14,代码来源:__init__.py
示例16: get_urls
def get_urls(self):
return [
admin_url(
"^categories/(?P<pk>\d+)/copy-visibility/$",
"shuup.admin.modules.categories.views.CategoryCopyVisibilityView",
name="category.copy_visibility",
permissions=get_default_model_permissions(Category)
)
] + 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),
)
开发者ID:andela-kerinoso,项目名称:shuup,代码行数:14,代码来源:__init__.py
示例17: get_urls
def get_urls(self):
return [
admin_url(
"^service_provider/(?P<pk>\d+)/delete/$",
"shuup.admin.modules.service_providers.views.ServiceProviderDeleteView",
name="service_provider.delete",
permissions=["shuup.delete_serviceprovider"],
)
] + get_edit_and_list_urls(
url_prefix="^service_provider",
view_template="shuup.admin.modules.service_providers.views.ServiceProvider%sView",
name_template="service_provider.%s",
permissions=get_default_model_permissions(ServiceProvider),
)
开发者ID:shawnadelic,项目名称:shuup,代码行数:14,代码来源:__init__.py
注:本文中的shuup.admin.utils.urls.get_edit_and_list_urls函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论