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
872f4b6c
Commit
872f4b6c
authored
Jan 24, 2013
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix handling of rejected accommodations
parent
4f37ea91
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
common/djangoapps/student/management/commands/pearson_export_ead.py
+3
-1
common/djangoapps/student/management/commands/pearson_make_tc_registration.py
+5
-4
No files found.
common/djangoapps/student/management/commands/pearson_export_ead.py
View file @
872f4b6c
...
...
@@ -7,7 +7,7 @@ from optparse import make_option
from
django.conf
import
settings
from
django.core.management.base
import
BaseCommand
,
CommandError
from
student.models
import
TestCenterRegistration
from
student.models
import
TestCenterRegistration
,
ACCOMMODATION_REJECTED_CODE
class
Command
(
BaseCommand
):
...
...
@@ -92,6 +92,8 @@ class Command(BaseCommand):
record
[
"LastUpdate"
]
=
record
[
"LastUpdate"
]
.
strftime
(
"
%
Y/
%
m/
%
d
%
H:
%
M:
%
S"
)
record
[
"EligibilityApptDateFirst"
]
=
record
[
"EligibilityApptDateFirst"
]
.
strftime
(
"
%
Y/
%
m/
%
d"
)
record
[
"EligibilityApptDateLast"
]
=
record
[
"EligibilityApptDateLast"
]
.
strftime
(
"
%
Y/
%
m/
%
d"
)
if
record
[
"Accommodations"
]
==
ACCOMMODATION_REJECTED_CODE
:
record
[
"Accommodations"
]
=
""
if
options
[
'force_add'
]:
record
[
'AuthorizationTransactionType'
]
=
'Add'
...
...
common/djangoapps/student/management/commands/pearson_make_tc_registration.py
View file @
872f4b6c
...
...
@@ -104,8 +104,10 @@ class Command(BaseCommand):
except
TestCenterUser
.
DoesNotExist
:
raise
CommandError
(
"User
\"
{}
\"
does not have an existing demographics record"
.
format
(
username
))
# check to see if a course_id was specified, and use information from that:
# get an "exam" object. Check to see if a course_id was specified, and use information from that:
exam
=
None
create_dummy_exam
=
'create_dummy_exam'
in
our_options
and
our_options
[
'create_dummy_exam'
]
if
not
create_dummy_exam
:
try
:
course
=
course_from_id
(
course_id
)
if
'ignore_registration_dates'
in
our_options
:
...
...
@@ -114,9 +116,8 @@ class Command(BaseCommand):
else
:
exam
=
course
.
current_test_center_exam
except
ItemNotFoundError
:
create_dummy_exam
=
True
if
exam
is
None
and
create_dummy_exam
:
pass
else
:
# otherwise use explicit values (so we don't have to define a course):
exam_name
=
"Dummy Placeholder Name"
exam_info
=
{
'Exam_Series_Code'
:
our_options
[
'exam_series_code'
],
...
...
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