Commit Graph

459 Commits

Author SHA1 Message Date
kimth
c25eded4fc Move xqueue_interface to lib/capa 2012-08-03 15:32:02 -04:00
kimth
604596843c Time to think about file interface with xqueue 2012-08-03 14:39:30 -04:00
kimth
473bb817e8 File objects passed to responsetype only if responsetype explicitly allows filesubmissions 2012-08-03 14:34:48 -04:00
kimth
bfd441255a Every path except for 'get_score' gets filename instead of file object 2012-08-03 14:16:20 -04:00
kimth
cbb377d383 Answer dict values remain unicode, rather than str 2012-08-03 14:10:22 -04:00
kimth
afcd6fb1d7 Safe logging of File-included answers 2012-08-03 14:02:49 -04:00
kimth
eeaa1e0440 Capa util function to turn File objects in dict to filename (string) 2012-08-03 13:54:33 -04:00
kimth
f023dc6e26 xqueue_interface generates hashkeys 2012-08-03 10:10:06 -04:00
kimth
3d8ee671b3 Adjust comments 2012-08-03 09:34:47 -04:00
kimth
e4609f3abe Remove unnecessary hardcode url in CodeResponse 2012-08-03 09:30:03 -04:00
kimth
688f8914e3 Update filesubmission template to show state 2012-08-02 20:32:03 -04:00
kimth
35a461d917 Empty file inputs insert empty string as their submission in ajax; LMS reacts accordingly 2012-08-02 20:22:33 -04:00
kimth
236c3dc576 modx_dispatch handles new/old problem_check ajax 2012-08-02 19:34:33 -04:00
kimth
51fc69da52 Spelling in comment 2012-08-02 19:26:37 -04:00
kimth
5c3c3df1b7 Unbreak check_fd callback 2012-08-02 19:24:25 -04:00
kimth
988136c401 LMS must login before submitting to xqueue 2012-08-02 18:34:14 -04:00
kimth
d2db4134cd CodeResponse does basic error handling from xqueue submission 2012-08-02 17:28:12 -04:00
kimth
6de2fa5e1e LMS interface to xqueue in separate file 2012-08-02 17:10:35 -04:00
kimth
c7084e5240 Comments for 'check_fd' 2012-08-02 15:35:25 -04:00
kimth
541f5ecdd2 Filesubmission frontend 2012-08-02 14:32:40 -04:00
kimth
8a983b3ced Queuekey does not need to be integer 2012-08-01 10:39:09 -04:00
kimth
fac7659315 Use xqueue cname 2012-08-01 10:23:30 -04:00
kimth
11495563fa Tweaks to CodeMirror: fix indentation, textarea is vertically resizable 2012-07-31 16:42:17 -04:00
kimth
2e3c5de1a5 Remove hardcoding of LMS callback URL and default queuename 2012-07-31 14:08:02 -04:00
kimth
e2f4995bc9 LMS provides fully qualified callback URL 2012-07-31 08:57:28 -04:00
kimth
6d600ecf2c Merge branch 'master' into kimth/lms-coderesponse 2012-07-30 20:42:10 -04:00
kimth
b9e5e9f0ee Read XML for queuename 2012-07-30 20:18:25 -04:00
kimth
6244412c28 Simplify default linenumbers behavior 2012-07-30 18:59:11 -04:00
kimth
bd66a28d32 Add TODO note 2012-07-30 15:23:14 -04:00
Calen Pennington
ab0055c201 Add update_schematic to window in schematic.js 2012-07-30 14:04:39 -04:00
Calen Pennington
395cf147be Look up data_dir in the metadata, not in the top of the json object when loading from mongodb 2012-07-30 14:04:39 -04:00
Calen Pennington
2caf1024f1 Force mongodb fs_root to be a path object 2012-07-30 14:04:15 -04:00
Calen Pennington
d0c99151f0 Continue during backcompat imports by replacing contents with error xml 2012-07-30 14:04:15 -04:00
Calen Pennington
66d5c8effd Add more detail to error messages during loading from xml 2012-07-30 13:50:50 -04:00
Calen Pennington
6997fc579e Continue on errors when syncing with github 2012-07-30 13:50:00 -04:00
kimth
bd0b20bb60 xqueue_callback uses 'xqueue_body' tag rather than 'response' tag for main message 2012-07-30 13:35:13 -04:00
Calen Pennington
05add5818b Return a custom error for duplicate elements, and ignore it when loading into mongo 2012-07-30 13:16:21 -04:00
kimth
4e43b662fa CodeResponse admits only one student response 2012-07-30 13:10:24 -04:00
kimth
80b62bf026 Serialize xqueue payload 2012-07-30 12:30:08 -04:00
Victor Shnayder
59defd33b6 Formatting and little bugfixes
* add course and org to full/course.xml
* fix error path in clean_xml script
* commit rakefile change needed by c5334f150c
2012-07-27 16:09:25 -04:00
Victor Shnayder
a8afe5ed17 Change modulestore to use a logging error handler
* log errors, but don't fail
2012-07-27 16:09:25 -04:00
Victor Shnayder
73b3826820 Initial integration tests!
* new env file to run integration tests with mongo backend
  - needs askbot to get db in the right state
  - needs wiki to load pages successfully
  - not using migrations to make it run faster
* import test courses, check that each page loads without erroring.
* fix NonePointerException in index view to make tests pass
* misc formatting cleanups
2012-07-27 16:09:25 -04:00
Victor Shnayder
1251686359 xml format cleanups
* rename slug->url_name
* rename name->display_name
* docstring cleanups
* comments :)
2012-07-27 16:09:25 -04:00
Victor Shnayder
3c3bbd114e minor formatting tweaks 2012-07-27 16:08:24 -04:00
Victor Shnayder
da29d88d04 Add import-export round-trip check.
* add fix for the file export code--remove tag tail and text,
  not just the children.
2012-07-27 16:08:24 -04:00
Victor Shnayder
128d11e20e line length fixes 2012-07-27 16:08:24 -04:00
Victor Shnayder
168f76ce5a Add jump_to functionality to lms on mongo
* More tests for mongo modulestore, including tweaks to test files
* add location_to_id method to CourseDescriptors
* Implement path_to_location method in mongo.py
  - TODO: does not handle position in sequences yet.
* fix bug in jump_to view.
2012-07-27 16:08:24 -04:00
Victor Shnayder
eb5989aa99 Ready to implement path_to_location
* Clean up test data for simple, toy courses
* clean up test_mongo.py
* write initial test for path_to_location
* hook up view to use path_to_location

Next: actually implement it :)
2012-07-27 16:08:24 -04:00
Victor Shnayder
f10c4c06b6 Start adding tests for mongo modulestore
* fix up toy course to match current format
* fix github sync test that referred to toy course
2012-07-27 16:08:23 -04:00
Victor Shnayder
60cba3d95f Move import_from_xml to xmodule/modulestore 2012-07-27 16:08:23 -04:00