|
|
@@ -8,27 +8,18 @@ from oscar.apps.customer import forms
|
|
8
|
8
|
from oscar.core.loading import get_class
|
|
9
|
9
|
from oscar.views.decorators import login_forbidden
|
|
10
|
10
|
|
|
11
|
|
-CATALOGUE_APP = get_class('catalogue.app', 'application')
|
|
12
|
|
-CUSTOMER_APP = get_class('customer.app', 'application')
|
|
13
|
|
-BASKET_APP = get_class('basket.app', 'application')
|
|
14
|
|
-CHECKOUT_APP = get_class('checkout.app', 'application')
|
|
15
|
|
-PROMOTIONS_APP = get_class('promotions.app', 'application')
|
|
16
|
|
-SEARCH_APP = get_class('search.app', 'application')
|
|
17
|
|
-OFFER_APP = get_class('offer.app', 'application')
|
|
18
|
|
-DASHBOARD_APP = get_class('dashboard.app', 'application')
|
|
19
|
|
-
|
|
20
|
11
|
|
|
21
|
12
|
class Shop(Application):
|
|
22
|
13
|
name = None
|
|
23
|
14
|
|
|
24
|
|
- catalogue_app = CATALOGUE_APP
|
|
25
|
|
- customer_app = CUSTOMER_APP
|
|
26
|
|
- basket_app = BASKET_APP
|
|
27
|
|
- checkout_app = CHECKOUT_APP
|
|
28
|
|
- promotions_app = PROMOTIONS_APP
|
|
29
|
|
- search_app = SEARCH_APP
|
|
30
|
|
- dashboard_app = DASHBOARD_APP
|
|
31
|
|
- offer_app = OFFER_APP
|
|
|
15
|
+ catalogue_app = get_class('catalogue.app', 'application')
|
|
|
16
|
+ customer_app = get_class('customer.app', 'application')
|
|
|
17
|
+ basket_app = get_class('basket.app', 'application')
|
|
|
18
|
+ checkout_app = get_class('checkout.app', 'application')
|
|
|
19
|
+ promotions_app = get_class('promotions.app', 'application')
|
|
|
20
|
+ search_app = get_class('search.app', 'application')
|
|
|
21
|
+ dashboard_app = get_class('dashboard.app', 'application')
|
|
|
22
|
+ offer_app = get_class('offer.app', 'application')
|
|
32
|
23
|
|
|
33
|
24
|
def get_urls(self):
|
|
34
|
25
|
urlpatterns = patterns('',
|