本文整理汇总了Python中shoop.admin.utils.urls.derive_model_url函数的典型用法代码示例。如果您正苦于以下问题:Python derive_model_url函数的具体用法?Python derive_model_url怎么用?Python derive_model_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了derive_model_url函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: get_model_url
def get_model_url(self, object, kind):
return derive_model_url(Page, "shoop_admin:simple_cms.page", object, kind)
示例2: get_model_url
def get_model_url(self, object, kind):
return derive_model_url(Product, "shoop_admin:product", object, kind)
示例3: get_model_url
def get_model_url(self, object, kind):
return derive_model_url(TaxRule, "shoop_admin:default_tax.tax_rule", object, kind)
示例4: get_model_url
def get_model_url(self, object, kind):
return (
derive_model_url(ShippingMethod, "shoop_admin:method.shipping", object, kind) or
derive_model_url(PaymentMethod, "shoop_admin:method.payment", object, kind)
)
示例5: get_model_url
def get_model_url(self, object, kind):
return derive_model_url(Shop, "shoop_admin:shop", object, kind)
示例6: get_model_url
def get_model_url(self, object, kind):
return derive_model_url(Attribute, "shoop_admin:attribute", object, kind)
示例7: get_model_url
def get_model_url(self, object, kind):
return derive_model_url(ContactGroup, "shoop_admin:contact-group", object, kind)
示例8: get_model_url
def get_model_url(self, object, kind):
if not hasattr(object, "admin_url_suffix"):
return super(CampaignAdminModule, self).get_model_url(object, kind)
admin_url = "shoop_admin:%s" % object.admin_url_suffix
return derive_model_url(type(object), admin_url, object, kind)
示例9: get_model_url
def get_model_url(self, object, kind):
return derive_model_url(Supplier, "shoop_admin:suppliers", object, kind)
示例10: get_model_url
def get_model_url(self, object, kind):
return derive_model_url(Manufacturer, "shoop_admin:manufacturers", object, kind)
示例11: get_model_url
def get_model_url(self, object, kind):
return derive_model_url(Carousel, "shoop_admin:carousel", object, kind)
示例12: get_model_url
def get_model_url(self, object, kind):
return derive_model_url(Script, "shoop_admin:notify.script", object, kind)
示例13: get_model_url
def get_model_url(self, object, kind):
return derive_model_url(ServiceProvider, "shoop_admin:service_provider", object, kind)
示例14: get_model_url
def get_model_url(self, object, kind):
return (
derive_model_url(Tax, "shoop_admin:tax", object, kind) or
derive_model_url(TaxClass, "shoop_admin:tax_class", object, kind) or
derive_model_url(CustomerTaxGroup, "shoop_admin:customer_tax_group", object, kind)
)