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
352a9407
Commit
352a9407
authored
Sep 26, 2013
by
Jason Bau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make typo and import fixes
parent
597bfc1d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
common/djangoapps/cme_registration/models.py
+8
-8
common/djangoapps/cme_registration/views.py
+4
-3
No files found.
common/djangoapps/cme_registration/models.py
View file @
352a9407
...
...
@@ -212,7 +212,7 @@ class CmeUserProfile(UserProfile):
(
'Guyana'
,
'Guyana'
),
(
'Haiti'
,
'Haiti'
),
(
'Heard Island And McDonald Is lands'
,
'Heard Island And McDonald Is lands'
),
(
'Holy See (V
.atican City State)'
,
'Holy See (V.
atican City State)'
),
(
'Holy See (V
atican City State)'
,
'Holy See (V
atican City State)'
),
(
'Honduras'
,
'Honduras'
),
(
'Hong Kong'
,
'Hong Kong'
),
(
'Hungary'
,
'Hungary'
),
...
...
@@ -245,8 +245,8 @@ class CmeUserProfile(UserProfile):
(
'Liechtenstein'
,
'Liechtenstein'
),
(
'Lithuania'
,
'Lithuania'
),
(
'Luxembourg'
,
'Luxembourg'
),
(
'Mac
Ao'
,
'MacA
o'
),
(
'Mac
Edonia, The Former Yugoslav Republic Of'
,
'MacE
donia, The Former Yugoslav Republic Of'
),
(
'Mac
ao'
,
'Maca
o'
),
(
'Mac
edonia, The Former Yugoslav Republic Of'
,
'Mace
donia, The Former Yugoslav Republic Of'
),
(
'Madagascar'
,
'Madagascar'
),
(
'Malawi'
,
'Malawi'
),
(
'Malaysia'
,
'Malaysia'
),
...
...
@@ -255,7 +255,7 @@ class CmeUserProfile(UserProfile):
(
'Malta'
,
'Malta'
),
(
'Marshall Islands'
,
'Marshall Islands'
),
(
'Martinique'
,
'Martinique'
),
(
'Mauritan
ia'
,
'Mauritan
ia'
),
(
'Mauritan
ia'
,
'Mauritan
ia'
),
(
'Mauritius'
,
'Mauritius'
),
(
'Mayotte'
,
'Mayotte'
),
(
'Mexico'
,
'Mexico'
),
...
...
@@ -282,7 +282,6 @@ class CmeUserProfile(UserProfile):
(
'Norfolk Island'
,
'Norfolk Island'
),
(
'Northern Mariana Islands'
,
'Northern Mariana Islands'
),
(
'Norway'
,
'Norway'
),
(
'Not Specified'
,
'Not Specified'
),
(
'Oman'
,
'Oman'
),
(
'Pakistan'
,
'Pakistan'
),
(
'Palau'
,
'Palau'
),
...
...
@@ -292,7 +291,7 @@ class CmeUserProfile(UserProfile):
(
'Paraguay'
,
'Paraguay'
),
(
'Peru'
,
'Peru'
),
(
'Philippines'
,
'Philippines'
),
(
'Pitc
.airn'
,
'Pitc.
airn'
),
(
'Pitc
airn'
,
'Pitc
airn'
),
(
'Poland'
,
'Poland'
),
(
'Portugal'
,
'Portugal'
),
(
'Puerto Rico'
,
'Puerto Rico'
),
...
...
@@ -321,6 +320,7 @@ class CmeUserProfile(UserProfile):
(
'Somalia'
,
'Somalia'
),
(
'South Africa'
,
'South Africa'
),
(
'South Georgia And The South Sandwich Islands'
,
'South Georgia And The South Sandwich Islands'
),
(
'South Sudan'
,
'South Sudan'
),
(
'Spain'
,
'Spain'
),
(
'Sri Lanka'
,
'Sri Lanka'
),
(
'Sudan'
,
'Sudan'
),
...
...
@@ -329,7 +329,7 @@ class CmeUserProfile(UserProfile):
(
'Swaziland'
,
'Swaziland'
),
(
'Sweden'
,
'Sweden'
),
(
'Switzerland'
,
'Switzerland'
),
(
'Syrian A
lab Republic'
,
'Syrian Al
ab Republic'
),
(
'Syrian A
rab Republic'
,
'Syrian Ar
ab Republic'
),
(
'Taiwan'
,
'Taiwan'
),
(
'Tajikistan'
,
'Tajikistan'
),
(
'Tanzania, United Republic Of'
,
'Tanzania, United Republic Of'
),
...
...
@@ -347,7 +347,7 @@ class CmeUserProfile(UserProfile):
(
'U.S. Minor Outlying Islands'
,
'U.S. Minor Outlying Islands'
),
(
'Uganda'
,
'Uganda'
),
(
'Ukraine'
,
'Ukraine'
),
(
'United A
lab Emirates'
,
'United Al
ab Emirates'
),
(
'United A
rab Emirates'
,
'United Ar
ab Emirates'
),
(
'United Kingdom'
,
'United Kingdom'
),
(
'Uruguay'
,
'Uruguay'
),
(
'Uzbekistan'
,
'Uzbekistan'
),
...
...
common/djangoapps/cme_registration/views.py
View file @
352a9407
...
...
@@ -4,7 +4,7 @@ CME Registration methods
import
json
import
logging
from
statsd
import
statsd
from
dogapi
import
dog_stats_api
from
django_future.csrf
import
ensure_csrf_cookie
from
django.conf
import
settings
...
...
@@ -144,6 +144,7 @@ def cme_create_account(request, post_override=None):
request
.
session
.
set_expiry
(
0
)
redirect_url
=
student
.
views
.
try_change_enrollment
(
request
)
dog_stats_api
.
increment
(
"common.student.successful_login"
)
json_string
=
{
'success'
:
True
,
'redirect_url'
:
redirect_url
}
...
...
@@ -352,7 +353,7 @@ def validate_export_controls(post_vars):
return
{
'success'
:
False
,
'field'
:
'country'
,
'value'
:
'We are
experiencing a temporary system failure. Try again later
.'
# obfuscated message
'value'
:
'We are
unable to register you at this present time
.'
# obfuscated message
}
...
...
@@ -361,7 +362,7 @@ DENIED_COUNTRIES = [
'Korea, Democratic People
\'
s Republic Of'
,
'Iran, Islamic Republic Of'
,
'Cuba'
,
'Syrian A
l
ab Republic'
,
'Syrian A
r
ab Republic'
,
]
#Construct dicts for specialty and sub-specialty dropdowns
...
...
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