Victor Shnayder
1b9a3557eb
get_cohort() function and test
2013-01-24 15:12:52 -05:00
Victor Shnayder
0e78eaaf80
Add a course_groups djangoapp with a CourseUserGroup model.
2013-01-24 15:12:52 -05:00
Victor Shnayder
c655f62f7a
Remove out-of-date text about user replication, askbot
2013-01-24 15:12:51 -05:00
Brian Wilson
4f37ea9149
add --create_dummy_exam option to pearson_make_tc_registration
2013-01-24 14:45:31 -05:00
Brian Wilson
cb2d8db57c
store files in S3 bucket in separate directories by mode
2013-01-24 12:46:00 -05:00
Brian Wilson
1199b1ecfa
debug pearson import and update unit tests
2013-01-24 09:42:25 -05:00
Brian Wilson
d395c4448d
add more pearson tests, and update commands in response
2013-01-24 09:42:25 -05:00
Brian Wilson
740d0403e9
change name of function back to get_testcenter_registration, and disable its use as a test
2013-01-24 09:42:25 -05:00
Brian Wilson
f4703b40cb
add test-with-settings
2013-01-24 09:42:25 -05:00
Brian Wilson
553528cd1c
change get_testcenter_registration to get_tc_registration, so it's not treated as a test.
2013-01-24 09:42:25 -05:00
Brian Wilson
d30974b560
Get pearson export working in a unit test
2013-01-24 09:42:24 -05:00
Brian Wilson
7bcfc44b71
add first test shell
2013-01-24 09:42:24 -05:00
Ashley Penney
d0ecae30d7
Fix datadog logging to use .name on the file objects and add an additional logging line.
2013-01-24 09:42:24 -05:00
Ashley Penney
274cb8d865
Actually call the appropriate file.
2013-01-24 09:42:24 -05:00
Ashley Penney
3aacba1f63
Run over each file and run the import. We could probably do this as a try/except and not delete if the output of the import failed but it may be simply easier to refetch those files from the S3 backup and try again.
2013-01-24 09:42:24 -05:00
Ashley Penney
05b36bdd09
Add tags to the datadog event which will be set to the appropriate filename so we can see the cause of failures.
2013-01-24 09:42:24 -05:00
Ashley Penney
3a4091b798
Tweaks to enable datadog error events as well as some pep8 tidyup vim was shouting at me about.
2013-01-24 09:42:24 -05:00
Ashley Penney
333f2e5167
Fix ccd->cdd, I typed ccd so many times while working on this code. I am bad at typing!
2013-01-24 09:42:24 -05:00
Brian Wilson
5e76c9d033
add pearson_import_conf_zip command
2013-01-24 09:42:24 -05:00
Ashley Penney
46e9a8f6ac
Add help string.
2013-01-24 09:42:23 -05:00
Ashley Penney
482cefd246
Bunch of fixes to pep8 formatting, missing imports, change of kwargs to
...
options, quoting variables and a few other fixups.
2013-01-24 09:42:23 -05:00
Ashley Penney
5431332cec
Fix up help.
2013-01-24 09:42:23 -05:00
Ashley Penney
3d5599c829
Further fixes to close the ssh connection explictly, make both the
...
default option if nothing is provided, and not bother passing true
when calling the subcommands.
2013-01-24 09:42:23 -05:00
Ashley Penney
0555ebc434
Bunch of fixes to how I do if/else checks, fix a typo in Command and
...
repair the for filename part of sftp.
2013-01-24 09:42:23 -05:00
Ashley Penney
378b1ff0c3
Various changes thanks to feedback from Brian to make the existing
...
export commands handle --dest-from-settings and --destination and fail
unless one is provided as well as rename pearson.py to pearson_transfer
and allow is to call the import/export commands directly.
I've set it to die in pearson_transfer.py if the django PEARSON settings
aren't available. I don't want to try and provide defaults, these must
exist or it simply fails.
2013-01-24 09:42:23 -05:00
Ashley Penney
61ea2d7b5d
Couple of fixes to the settings data.
2013-01-24 09:42:03 -05:00
Ashley Penney
1acf2dbba3
Use a dictionary for all the pearson stuff to keep the auth/env stuff
...
clean.
2013-01-24 09:42:03 -05:00
Ashley Penney
1d13b1a9bd
Make various changes to handle the s3/sftp part of the pearson process.
2013-01-24 09:42:03 -05:00
John Jarvis
4af2e1118a
Changing login and register to login_user and register_user
2013-01-23 18:44:26 -05:00
John Jarvis
d2e130ab33
Removing extra parens
2013-01-23 18:42:35 -05:00
John Jarvis
64f0855055
Adding removed code from master rebase
2013-01-23 18:41:17 -05:00
John Jarvis
8a0cc6e610
Revert "Fixing namespace issue for "login""
...
This reverts commit dcc53c2bcd .
2013-01-23 18:34:53 -05:00
John Jarvis
dcc53c2bcd
Fixing namespace issue for "login"
...
* renaming login to login_user
* renaming register to register_user
2013-01-23 18:22:14 -05:00
John Jarvis
9af7c6cc5d
adding login views
2013-01-23 18:22:12 -05:00
Ned Batchelder
037fe5f722
When checking types to convert data, don't forget about longs. 32-bit Pythons make longs from values that are ints on 64-bit Pythons.
2013-01-23 17:11:02 -05:00
Brian Wilson
9d28c37724
add more test coverage for openid provider.
2013-01-23 04:23:30 -05:00
Brian Wilson
ba62a657bf
Merge remote-tracking branch 'origin/master' into bugfix/brian/openid_provider_post
2013-01-22 23:50:38 -05:00
Don Mitchell
1f261e6556
Removed unused and stylistically incorrect class defs
2013-01-22 17:34:45 -05:00
Don Mitchell
edda80d485
New style base python classes and basestring type.
2013-01-22 11:30:24 -05:00
Brian Wilson
9653631e9a
Add initial openid_provider tests (covers xrds and authentication requests)
2013-01-22 11:15:30 -05:00
Brian Wilson
6da9c7bd9a
get (openId) provider_login to work with POST requests
2013-01-18 18:37:24 -05:00
Chris Dodge
550e805b74
Merge branch 'master' into feature/cdodge/cms-master-merge4
...
Conflicts:
common/lib/xmodule/xmodule/course_module.py
2013-01-18 15:44:41 -05:00
Carlos Andrés Rocha
ef69b738c9
Sort courses announcement date
...
If there is no announcement date (in the policy metadata) then use a
heuristic to sort them.
If there is an announcement date, the use it in the heuristic to
determine if the course is new or not.
2013-01-17 21:46:58 -05:00
Chris Dodge
44cfcb88a3
Merge branch 'master' into feature/cdodge/cms-master-merge4
2013-01-17 20:30:22 -05:00
Brian Wilson
80b2f45ac5
move pearson_import to another branch
2013-01-17 10:14:55 -05:00
Chris Dodge
22695d80c7
Merge branch 'master' into feature/cdodge/cms-master-merge4
...
Conflicts:
common/djangoapps/student/models.py
common/lib/capa/capa/responsetypes.py
common/lib/xmodule/setup.py
common/lib/xmodule/xmodule/course_module.py
common/lib/xmodule/xmodule/xml_module.py
jenkins/test.sh
lms/djangoapps/courseware/access.py
lms/djangoapps/courseware/tests/tests.py
lms/djangoapps/django_comment_client/models.py
requirements.txt
2013-01-17 09:15:37 -05:00
Brian Wilson
4a59125bf9
add pearson import confirmation tool
2013-01-16 17:51:31 -05:00
Brian Wilson
fea6feb04f
Strip whitespace off of registration demographics before validation
2013-01-16 17:39:33 -05:00
Brian Wilson
e68e612ee1
Return 404 in begin_exam_registration when course or exam are not valid
2013-01-16 16:40:28 -05:00
Brian Wilson
1de67be788
clear upload_status if user makes changes to TestCenterUser or TestCenterRegistration (so the change is pending, rather than rejected)
2013-01-16 15:43:15 -05:00