Commit Graph

196 Commits

Author SHA1 Message Date
ichuang
1e0475c10b minor change to capa_module: fp needs name when using stringio for error 2012-06-02 10:00:41 -04:00
ichuang
52e1f17882 if DEBUG, if one problem is bad don't crash with error message; instead
capture the error message and traceback and show this as the problem text.
2012-06-02 09:47:37 -04:00
ichuang
e17668540f dynamic math - changes to javascript, responsetypes, and inputtypes
main.html now includes mathjax_include for all mathjax stuff
problem.js refreshes mathjax formulas on change
all previous *_fromjs renamed to *_dynamath, eg textline_dynamath
2012-06-01 22:39:50 -04:00
ichuang
41996faede changed another debug print to use logging (module_render) 2012-06-01 15:01:34 -04:00
ichuang
b1b08d2989 made "position" a generic parameter passed to all modules, from courseware.views.index 2012-06-01 14:34:26 -04:00
ichuang
7fbc4d7f4f removed django.settings imports from modules/* ; changed debug prints
to use logging; added DEBUG attr to XModule class
2012-06-01 13:49:19 -04:00
ichuang
a42ea2ca39 removed debug "if false" line in module_render 2012-06-01 13:42:50 -04:00
ichuang
3d925f29ee new "jumpto": go directly to a specific problem. changes made to
urls, courseware.{views,module_render}, comments added to seq_module
2012-05-29 23:32:02 -04:00
ichuang
27f5826e34 content_parser: use logging for errors 2012-05-29 23:22:10 -04:00
ichuang
bb37f2019b capa_problem: convert print of errors into log.* 2012-05-29 23:21:22 -04:00
ichuang
cc02962eb4 add @ensure_csrf_token to courseware.views.index 2012-05-29 17:54:45 -04:00
ichuang
fdca527bf1 Merge branch 'dogfood' of github.com:MITx/mitx into dogfood 2012-05-29 17:08:27 -04:00
ichuang
87cda4c282 make imageinput work with dogfood, fix typo in responsetypes.imageresponse 2012-05-29 17:06:15 -04:00
ichuang
f8e24521b0 in sslauth, auto-create user when settings.DEBUG=true 2012-05-29 07:33:50 -04:00
ichuang
e5a7d811d7 multiplechoice inputs: allow <choice ...>item text</choice> format 2012-05-28 14:08:26 -04:00
ichuang
074fde6762 add mode and linenumbers options to textbox inputtype 2012-05-28 13:34:30 -04:00
ichuang
436a39edec fix inconsistent indentation in inputtypes 2012-05-28 12:55:57 -04:00
ichuang
4bf7459153 add git reset --hard HEAD to git command in quickedit_git_reload 2012-05-28 11:41:43 -04:00
ichuang
39c61070ed new feature - load course.xml + html + problems etc from git
(see courseware.views.quickedit_git_reload)
2012-05-28 11:25:12 -04:00
ichuang
5729d013f4 in DEBUG mode, fail gracefully if a problem file is missing (capa_module) 2012-05-28 11:02:33 -04:00
ichuang
3df1845fc5 quickedit hook for dogfood - skip is_staff check for dogfood 2012-05-28 10:07:02 -04:00
ichuang
4ea7aa26ab debugging statement in multicourse.views 2012-05-28 10:05:57 -04:00
ichuang
c70b80753a pass instance of LoncapaProblem in response checker context 2012-05-28 10:05:14 -04:00
ichuang
9dd5cfa277 admin for courseware student model 2012-05-27 23:33:29 -04:00
ichuang
dbab163d1b fixed courseware.views.quickedit to create StudentModule state if not pre-existing 2012-05-27 22:48:43 -04:00
ichuang
5251bb2a6a improve error handling in customresponse check function call 2012-05-27 21:27:10 -04:00
ichuang
7a27a97899 add "msg" output to textline 2012-05-27 21:12:54 -04:00
ichuang
30ee4d19ed fixed customresponse: when using cfn with multiple inputs fill in all
values of correct_map
2012-05-27 21:11:12 -04:00
ichuang
2d96379c84 multicourse: remove obsolete is_dogfood flag 2012-05-27 20:15:45 -04:00
ichuang
4280c791a3 added (temporary?) debugging statements 2012-05-27 20:12:06 -04:00
ichuang
8bbff1107f courseware.views - updated quickedit to allow calls from dogfood 2012-05-27 20:08:33 -04:00
ichuang
41a539ed1f html_module should render_to_string from namespace "course", not "main" 2012-05-27 20:07:38 -04:00
ichuang
6ad4a4f740 add textbox input type to customresponse 2012-05-27 20:05:19 -04:00
ichuang
213b53fcc2 fixed script evaluation in capa_problem: don't parse javascript or
perl, and use "context" for both global and local frames
2012-05-27 20:04:20 -04:00
ichuang
2dd8bd48f7 fix textbox inputtypes to show default from problem if no student input available yet. 2012-05-26 23:04:06 -04:00
ichuang
d304261763 added function to check if is_dogfood in multicourse settings 2012-05-26 22:35:10 -04:00
ichuang
dcc72a2a18 added csrf handling to quickedit 2012-05-26 22:34:19 -04:00
ichuang
22572bf87b fix multicourse to properly set COURSE_TITLE (navigation.html uses settings.COURSE_TITLE) 2012-05-26 17:05:52 -04:00
Calen Pennington
1b5a9bc547 Moving the 'id' prefix back into content_parser where it exists 2012-05-25 11:04:05 -04:00
Calen Pennington
dea0d28ace Url encode memcache keys, rather than writing a new encoding scheme. Also use fasthash, rather than md5 2012-05-25 10:52:04 -04:00
Calen Pennington
0af8502c6d Dirt-simple heartbeat page for use by AWS load balancers 2012-05-22 15:39:40 -04:00
Calen Pennington
431704ac88 Make courseware work with multicourse disabled 2012-05-21 12:59:51 -04:00
Calen Pennington
03a9be7e78 Add newrelic handler, rather than custom function to log exceptions 2012-05-21 12:12:16 -04:00
David Ormsbee
4fe22be501 Merge pull request #59 from MITx/pmitros/modular-refactor
First part of courseware refactor
2012-05-21 06:21:43 -07:00
Piotr Mitros
bb66cad68b Code review -- comments and better exceptions 2012-05-21 09:18:40 -04:00
Piotr Mitros
abdd696f7e Modular refactor: Fixed bugs. Tests work. 2012-05-20 16:08:10 -04:00
Piotr Mitros
e9468a0e5e Modular refactor: Very minor changes (comments, etc.) 2012-05-20 15:22:39 -04:00
Piotr Mitros
d95a5e462d Modular refactor: Better names (grade to get_score, etc. 2012-05-20 14:52:48 -04:00
Piotr Mitros
29f565dd6e Modular refactor: Input types register in SimpleInput with decorator 2012-05-20 13:38:02 -04:00
Piotr Mitros
cd67ec8fc1 Modular refactor: Input types look more like x_module 2012-05-20 13:31:37 -04:00