示例#1
0
 def get_urls(self):
     urls = [
         url(r'^user-list/$', permission_required(['dashboard_admin'])(self.user_list_view.as_view()), name='user-list'),
         url(r'^user-role/(?P<pk>\d+)/$',
             permission_required([u'dashboard_admin'])(self.user_role_view.as_view()), name='user-role'),
         url(r'^permission-denied/$', views.permission_denied, name='permission-denied'),
     ]
     return self.post_process_urls(patterns('', *urls))
示例#2
0
 def get_urls(self):
     urls = [
         url(r'^$',
             permission_required(['dashboard_admin'])(self.list_view.as_view()),
             name='partner-list'),
         url(r'^create/$',
             permission_required(['dashboard_admin'])(self.create_view.as_view()),
             name='partner-create'),
         url(r'^update/(?P<pk>\d+)/$',
             permission_required(['dashboard_admin'])(self.update_view.as_view()),
             name='partner-update'),
     ]
     return self.post_process_urls(urls)
示例#3
0
    def get_urls(self):
        # urls = super(DashboardApplication, self).get_urls()
        urls = [
            url(r'^$', permission_required(['dashboard_admin','ISP'])(self.index_view.as_view()), name='index'),
            url(r'^catalogue/', include(self.catalogue_app.urls)),
            url(r'^reports/', include(self.reports_app.urls)),
            url(r'^orders/', include(self.orders_app.urls)),
            url(r'^users/', include(self.users_app.urls)),
            url(r'^content-blocks/', include(self.promotions_app.urls)),
            url(r'^pages/', include(self.pages_app.urls)),
            url(r'^partners/', include(self.partners_app.urls)),
            url(r'^offers/', include(self.offers_app.urls)),
            url(r'^ranges/', include(self.ranges_app.urls)),
            url(r'^reviews/', include(self.reviews_app.urls)),
            url(r'^vouchers/', include(self.vouchers_app.urls)),
            url(r'^comms/', include(self.comms_app.urls)),
            url(r'^shipping/', include(self.shipping_app.urls)),
            url(r'^ad/', include(self.ad_app.urls)),
            url(r'^permission/', include(self.permission_app.urls)),
            url(r'^pickup-admin/', include(self.pickup_admin_app.urls)),
            url(r'^business/', include(self.business_app.urls)),
            url(r'^dataquery/', include(self.dataquery_app.urls)),

            url(r'^login/$', self.login_view.as_view(), name='dashboard-login'),
            url(r'^logout/$', self.logout_view.as_view(), name='dashboard-logout'),

            url(r'^staticpages/', include(staticpages.urls)),
        ]

        return self.post_process_urls(urls)
示例#4
0
    def get_urls(self):
        # urls = super(DashboardApplication, self).get_urls()
        urls = [
            url(r'^$',
                permission_required(['dashboard_admin'
                                     ])(self.index_view.as_view()),
                name='index'),
            url(r'^catalogue/', include(self.catalogue_app.urls)),
            url(r'^reports/', include(self.reports_app.urls)),
            url(r'^orders/', include(self.orders_app.urls)),
            url(r'^users/', include(self.users_app.urls)),
            url(r'^content-blocks/', include(self.promotions_app.urls)),
            url(r'^pages/', include(self.pages_app.urls)),
            url(r'^partners/', include(self.partners_app.urls)),
            url(r'^offers/', include(self.offers_app.urls)),
            url(r'^ranges/', include(self.ranges_app.urls)),
            url(r'^reviews/', include(self.reviews_app.urls)),
            url(r'^vouchers/', include(self.vouchers_app.urls)),
            url(r'^comms/', include(self.comms_app.urls)),
            url(r'^shipping/', include(self.shipping_app.urls)),
            url(r'^ad/', include(self.ad_app.urls)),
            url(r'^permission/', include(self.permission_app.urls)),
            url(r'^dataquery/', include(self.dataquery_app.urls)),
        ]

        return self.post_process_urls(urls)
示例#5
0
 def get_urls(self):
     urls = [
         url(r'^$',
             permission_required(['dashboard_admin'
                                  ])(self.list_view.as_view()),
             name='partner-list'),
         url(r'^create/$',
             permission_required(['dashboard_admin'
                                  ])(self.create_view.as_view()),
             name='partner-create'),
         url(r'^update/(?P<pk>\d+)/$',
             permission_required(['dashboard_admin'
                                  ])(self.update_view.as_view()),
             name='partner-update'),
     ]
     return self.post_process_urls(urls)
示例#6
0
 def get_urls(self):
     urls = [
             url(r'^rollingad/(?P<pk>\d+)/$', permission_required(['dashboard_admin'])(self.rolling_ad_detail_view.as_view()), name='ad-rolling_ad-detail'),
             url(r'^rollingad/create/$', permission_required(['dashboard_admin'])(self.rolling_ad_create_view.as_view()), name='ad-rolling_ad-create'),
             url(r'^rollingad/(?P<pk>\d+)/update/$', permission_required(['dashboard_admin'])(self.rolling_ad_update_view.as_view()), name='ad-rolling_ad-update'),
             url(r'^rollingad/list/$', permission_required(['dashboard_admin'])(self.rolling_ad_list_view.as_view()), name='ad-rolling_ad-list'),
             url(r'^rollingad/summary/(?P<pk>\d+)/$', permission_required(['dashboard_admin'])(self.rolling_ad_detail_view.as_view()), name='ad-rolling_ad-detail-list'),
             url(r'^rollingad/(?P<pk>\d+)/delete/$', permission_required(['dashboard_admin'])(self.rolling_ad_delete_view.as_view()), name='ad-rolling_ad-delete'),
     ]
     return self.post_process_urls(urls)
示例#7
0
    def get_urls(self):
        urls = [
                url(r'^commission-query-list/$',
                permission_required(['dashboard_admin',])(self.CommissionQueryListView.as_view()), name='commission-query-list'),
                url(r'^commission-query-all-list/$',
                permission_required(['dashboard_admin',])(self.CommissionQueryAllListView.as_view()), name='commission-query-all-list'),
                url(r'^tradecomplete-query-list/$',
                permission_required(['dashboard_admin',])(self.TradeCompleteQueryListView.as_view()), name='tradecomplete-query-list'),
                url(r'^tradecomplete-query-all-list/$',
                permission_required(['dashboard_admin',])(self.TradeCompleteQueryAllListView.as_view()), name='tradecomplete-query-all-list'),
                url(r'^hold-product-list/$',
                permission_required(['dashboard_admin',])(self.HoldProductListView.as_view()), name='hold-product-list'),
                url(r'^store-product-list/$',
                permission_required(['dashboard_admin',])(self.StoreProductListView.as_view()), name='store-product-list'),
                url(r'^store-product-all-list/$',
                permission_required(['dashboard_admin',])(self.StoreProductAllListView.as_view()), name='store-product-all-list'),
                url(r'^capital-query-list/$',
                permission_required(['dashboard_admin',])(self.CapitalQueryListView.as_view()), name='capital-query-list'),
                url(r'^capital-query-all-list/$',
                permission_required(['dashboard_admin',])(self.CapitalQueryAllListView.as_view()), name='capital-query-all-list'),

                ]
        return self.post_process_urls(urls)
示例#8
0
 def get_urls(self):
     urls = [
         url(r'^products/(?P<pk>\d+)/$',
             permission_required(['dashboard_admin'])(self.product_createupdate_view.as_view()),
             name='catalogue-product'),
         url(r'^products/create/$',
             permission_required(['dashboard_admin'])(self.product_create_redirect_view.as_view()),
             name='catalogue-product-create'),
         url(r'^products/create/(?P<product_class_slug>[\w-]+)/$',
             permission_required(['dashboard_admin'])(self.product_createupdate_view.as_view()),
             name='catalogue-product-create'),
         url(r'^products/(?P<parent_pk>[-\d]+)/create-variant/$',
             permission_required(['dashboard_admin'])(self.product_createupdate_view.as_view()),
             name='catalogue-product-create-child'),
         url(r'^products/(?P<pk>\d+)/delete/$',
             permission_required(['dashboard_admin'])(None),
             name='catalogue-product-delete'),
         url(r'^$', permission_required(['dashboard_admin'])(self.product_list_view.as_view()),
             name='catalogue-product-list'),
         url(r'^stock-alerts/$', permission_required(['dashboard_admin'])(self.stock_alert_view.as_view()),
             name='stock-alert-list'),
         url(r'^product-lookup/$', permission_required(['dashboard_admin'])(self.product_lookup_view.as_view()),
             name='catalogue-product-lookup'),
         url(r'^categories/$', permission_required(['dashboard_admin'])(self.category_list_view.as_view()),
             name='catalogue-category-list'),
         url(r'^categories/(?P<pk>\d+)/$',
             permission_required(['dashboard_admin'])(self.category_detail_list_view.as_view()),
             name='catalogue-category-detail-list'),
         url(r'^categories/create/$', permission_required(['dashboard_admin'])(self.category_create_view.as_view()),
             name='catalogue-category-create'),
         url(r'^categories/create/(?P<parent>\d+)$',
             permission_required(['dashboard_admin'])(self.category_create_view.as_view()),
             name='catalogue-category-create-child'),
         url(r'^categories/(?P<pk>\d+)/update/$',
             permission_required(['dashboard_admin'])(self.category_update_view.as_view()),
             name='catalogue-category-update'),
         url(r'^categories/(?P<pk>\d+)/delete/$',
             permission_required(['dashboard_admin'])(self.category_delete_view.as_view()),
             name='catalogue-category-delete'),
         url(r'^product-type/create/$',
             permission_required(['dashboard_admin'])(self.product_class_create_view.as_view()),
             name='catalogue-class-create'),
         url(r'^product-types/$',
             permission_required(['dashboard_admin'])(self.product_class_list_view.as_view()),
             name='catalogue-class-list'),
         url(r'^product-type/(?P<pk>\d+)/update/$',
             permission_required(['dashboard_admin'])(self.product_class_update_view.as_view()),
             name='catalogue-class-update'),
         url(r'^product-type/(?P<pk>\d+)/delete/$',
             permission_required(['dashboard_admin'])(self.product_class_delete_view.as_view()),
             name='catalogue-class-delete'),
     ]
     return self.post_process_urls(urls)
示例#9
0
    def get_urls(self):
        urls = [
                url(r'^product/list/$', permission_required(['dashboard_admin','member_unit'])(self.ProductListView.as_view()), name='business-product-list'),
                url(r'^product/update/(?P<pk>\d+)/$', permission_required(['dashboard_admin','member_unit'])(self.ProductTraderUpdateView.as_view()), name='product-trader-update'),
                url(r'^storeincome/list/$', permission_required(['dashboard_admin','member_unit'])(self.StroeInComeListView.as_view()), name='storeincome-list'),
                url(r'^storeincome/update/$', permission_required(['dashboard_admin','member_unit'])(self.StroeInComeCreateView.as_view()), name='storeincomeapply-update'),
                url(r'^storeincome/update/(?P<pk>\d+)/$', permission_required(['dashboard_admin','member_unit'])(self.StroeInComeUpdateView.as_view()), name='storeincomeapply-update-pk'),
                url(r'^storeincome/delete/(?P<pk>\d+)/$', permission_required(['dashboard_admin','member_unit'])(self.StroeInComeDeleteView.as_view()), name='storeincomeapply-delete'),
                url(r'^pickup_apply/list/$', permission_required(['dashboard_admin','member_unit'])(self.Pickup_ApplyListView.as_view()), name='pickup-apply-list'),
                url(r'^product_quotation/list/$', permission_required(['dashboard_admin','member_unit'])(self.Product_QuotationListView.as_view()), name='product-quotation-list'),
                url(r'^business_pickupaddr/list/$', permission_required(['dashboard_admin','member_unit'])(self.BusinessPickupStoreListView.as_view()), name='business-pickupaddr-list'),
                url(r'^pickup_outstore/list/$', permission_required(['dashboard_admin','member_unit'])(self.PickupOutStoreListView.as_view()), name='pickup-outstore-list'),
                url(r'^business_product/list/$', permission_required(['dashboard_admin','trader'])(self.BusinessProductListView.as_view()), name='business-product-store-list'),
                url(r'^business_product/create/$', permission_required(['dashboard_admin','trader'])(self.BusinessProductCreateView.as_view()), name='businessproduct-create'),
                url(r'^business_product/update/(?P<pk>\d+)/$', permission_required(['dashboard_admin','member_unit'])(self.BusinessProductUpdateView.as_view()), name='businessproduct-update-pk'),
                url(r'^business_product/delete/(?P<pk>\d+)/$', permission_required(['dashboard_admin','member_unit'])(self.BusinessProductDeleteView.as_view()), name='businessproduct-delete'),
                url(r'^business_sale/list/$', permission_required(['dashboard_admin','member_unit'])(self.BusinessSaleListView.as_view()), name='business-sale-list'),
                url(r'^business_profit/list/$', permission_required(['dashboard_admin','member_unit'])(self.BusinessProfitListView.as_view()), name='business-profit-list'),
                url(r'^business_balance/list/$', permission_required(['dashboard_admin','member_unit'])(self.BusinessBalanceListView.as_view()), name='business-balance-list'),
                # deal stockenter
                url(r'^business_stockenter/list/$', permission_required(['dashboard_admin','member_unit'])(self.BusinessStockEnterDealListView.as_view()), name='business-stockenter-deal-list'),
                url(r'^business_stockenter/deal/(?P<pk>\d+)/$', permission_required(['dashboard_admin','member_unit'])(self.BusinessStockEnterDealView.as_view()), name='business-stockenter-deal'),
                url(r'^business_storeincome/deal/(?P<pk>\d+)/$', permission_required(['dashboard_admin','member_unit'])(self.StoreIncomeDealView.as_view()), name='business-storeincome-deal'),
                url(r'^business_login/$',self.BusinessLoginView.as_view(),name='business-login'),
                url(r'^trader_login/$',self.TraderLoginView.as_view(),name='trader-login'),
                # 会员单位
                url(r'^partner/list/$', permission_required(['dashboard_admin','member_unit'])(self.PartnerUserListView.as_view()), name='partneruser-list'),
                # 会员单位发货
                url(r'^express_send/list/$', permission_required(['dashboard_admin','member_unit'])(self.ExpressSendListView.as_view()), name='express-send-list'),
                url(r'^express_send/(?P<pk>\d+)/update/$', permission_required(['dashboard_admin','member_unit'])(self.ExpressSendDealView.as_view()), name='express-send-deal'),
                # 交易员
                url(r'^trader_product/list/$', permission_required(['dashboard_admin','trader'])(self.TraderProductListView.as_view()), name='trader-product-list'),
                url(r'^trader_sale/list/$', permission_required(['dashboard_admin','trader'])(self.TraderSaleListView.as_view()), name='trader-sale-list'),
                url(r'^get_pickupaddr/$',get_pickupaddr,name='get-pickupaddr'),

        ]
        return self.post_process_urls(urls)
示例#10
0
 def get_urls(self):
     urls = [
         url(r'^pickup-store-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff'
                                  ])(self.pickup_store_list_view.as_view()),
             name='pickup-store-list'),
         url(r'^pickup-apply-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff'
                                  ])(self.pickup_apply_list_view.as_view()),
             name='pickupaddr-pickup-apply-list'),
         url(r'^store-income-apply-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(
                 self.store_income_apply_list_view.as_view()),
             name='store-income-apply-list'),
         url(r'^store-income-apply/(?P<pk>\d+)/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(
                 self.store_income_apply_update_view.as_view()),
             name='store-income-apply'),
         url(r'^store-income-list/$',
             permission_required(
                 ['dashboard_admin', 'warehouse_staff',
                  'ISP'])(self.store_income_list_view.as_view()),
             name='store-income-list'),
         url(r'^store-income-update/(?P<pk>\d+)/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(
                 self.store_income_update_view.as_view()),
             name='store-income-update'),
         url(r'^store-income-create/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(
                 self.store_income_create_view.as_view()),
             name='store-income-create'),
         url(r'^pickup-apply-pickup-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(
                 self.pickup_apply_pickup_list_view.as_view()),
             name='pickup-apply-pickup-list'),
         url(r'^pickup-outcome-deal/(?P<pk>\d+)/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(
                 self.pickup_outcome_deal_view.as_view()),
             name='pickup-outcome-deal'),
         url(r'^pickup-apply-express-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(
                 self.pickup_apply_express_list_view.as_view()),
             name='pickup-apply-express-list'),
         url(r'^express-outcome-deal/(?P<pk>\d+)/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(
                 self.express_outcome_deal_view.as_view()),
             name='express-outcome-deal'),
         url(r'^pickup-statistics-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(
                 self.pickup_statistics_list_view.as_view()),
             name='pickup-statistics-list'),
         url(r'^pickup-login/$',
             self.login_view.as_view(),
             name='pickup-login'),
     ]
     return self.post_process_urls(urls)
示例#11
0
 def get_urls(self):
     urls = [
         url(r'^pickup-store-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(self.pickup_store_list_view.as_view()), name='pickup-store-list'),
         url(r'^pickup-apply-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(self.pickup_apply_list_view.as_view()), name='pickupaddr-pickup-apply-list'),
         url(r'^store-income-apply-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(self.store_income_apply_list_view.as_view()), name='store-income-apply-list'),
         url(r'^store-income-apply/(?P<pk>\d+)/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(self.store_income_apply_update_view.as_view()), name='store-income-apply'),
         url(r'^store-income-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff','ISP'])(self.store_income_list_view.as_view()), name='store-income-list'),
         url(r'^store-income-update/(?P<pk>\d+)/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(self.store_income_update_view.as_view()), name='store-income-update'),
         url(r'^store-income-create/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(self.store_income_create_view.as_view()), name='store-income-create'),
         url(r'^pickup-apply-pickup-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(self.pickup_apply_pickup_list_view.as_view()), name='pickup-apply-pickup-list'),
         url(r'^pickup-outcome-deal/(?P<pk>\d+)/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(self.pickup_outcome_deal_view.as_view()), name='pickup-outcome-deal'),
         url(r'^pickup-apply-express-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(self.pickup_apply_express_list_view.as_view()), name='pickup-apply-express-list'),
         url(r'^express-outcome-deal/(?P<pk>\d+)/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(self.express_outcome_deal_view.as_view()), name='express-outcome-deal'),
         url(r'^pickup-statistics-list/$',
             permission_required(['dashboard_admin', 'warehouse_staff'])(self.pickup_statistics_list_view.as_view()), name='pickup-statistics-list'),
         url(r'^pickup-login/$',
             self.login_view.as_view(), name='pickup-login'),
     ]
     return self.post_process_urls(urls)