Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
88f54fff
Commit
88f54fff
authored
Aug 19, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put shopping cart views behind flags
parent
77ee243e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
7 deletions
+22
-7
lms/djangoapps/shoppingcart/urls.py
+18
-7
lms/envs/common.py
+3
-0
lms/envs/dev.py
+1
-0
No files found.
lms/djangoapps/shoppingcart/urls.py
View file @
88f54fff
from
django.conf.urls
import
patterns
,
include
,
url
from
django.conf
import
settings
urlpatterns
=
patterns
(
'shoppingcart.views'
,
# nopep8
url
(
r'^$'
,
'show_cart'
),
url
(
r'^(?P<course_id>[^/]+/[^/]+/[^/]+)/$'
,
'test'
),
url
(
r'^add/course/(?P<course_id>[^/]+/[^/]+/[^/]+)/$'
,
'add_course_to_cart'
),
url
(
r'^register_verified_course/course/(?P<course_id>[^/]+/[^/]+/[^/]+)/$'
,
'register_for_verified_cert'
),
url
(
r'^clear/$'
,
'clear_cart'
),
url
(
r'^remove_item/$'
,
'remove_item'
),
url
(
r'^postpay_callback/$'
,
'postpay_callback'
),
#Both the ~accept and ~reject callback pages are handled here
url
(
r'^postpay_callback/$'
,
'postpay_callback'
),
# Both the ~accept and ~reject callback pages are handled here
url
(
r'^receipt/(?P<ordernum>[0-9]*)/$'
,
'show_receipt'
),
)
if
settings
.
MITX_FEATURES
[
'ENABLE_SHOPPING_CART'
]:
urlpatterns
+=
patterns
(
'shoppingcart.views'
,
url
(
r'^$'
,
'show_cart'
),
url
(
r'^clear/$'
,
'clear_cart'
),
url
(
r'^remove_item/$'
,
'remove_item'
),
)
if
settings
.
DEBUG
:
urlpatterns
+=
patterns
(
'shoppingcart.views'
,
url
(
r'^(?P<course_id>[^/]+/[^/]+/[^/]+)/$'
,
'test'
),
url
(
r'^add/course/(?P<course_id>[^/]+/[^/]+/[^/]+)/$'
,
'add_course_to_cart'
),
url
(
r'^register_verified_course/course/(?P<course_id>[^/]+/[^/]+/[^/]+)/$'
,
'register_for_verified_cert'
),
)
lms/envs/common.py
View file @
88f54fff
...
...
@@ -154,6 +154,9 @@ MITX_FEATURES = {
# Toggle to enable chat availability (configured on a per-course
# basis in Studio)
'ENABLE_CHAT'
:
False
,
# Toggle the availability of the shopping cart page
'ENABLE_SHOPPING_CART'
:
False
}
# Used for A/B testing
...
...
lms/envs/dev.py
View file @
88f54fff
...
...
@@ -30,6 +30,7 @@ MITX_FEATURES['ENABLE_INSTRUCTOR_ANALYTICS'] = True
MITX_FEATURES
[
'ENABLE_SERVICE_STATUS'
]
=
True
MITX_FEATURES
[
'ENABLE_HINTER_INSTRUCTOR_VIEW'
]
=
True
MITX_FEATURES
[
'ENABLE_INSTRUCTOR_BETA_DASHBOARD'
]
=
True
MITX_FEATURES
[
'ENABLE_SHOPPING_CART'
]
=
True
FEEDBACK_SUBMISSION_EMAIL
=
"dummy@example.com"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment