Ned Batchelder
12b6876753
safe_exec seeds the random module, and now we have tests for it.
2013-05-06 10:55:06 -04:00
Ned Batchelder
ab8a3050fd
Don't use jailpy if it hasn't been configured.
2013-05-06 10:55:05 -04:00
Ned Batchelder
d99eadc0a2
Refactor the assumed_imports handling
2013-05-06 10:55:05 -04:00
Ned Batchelder
eb85696347
Tests for safe_exec
2013-05-06 10:55:05 -04:00
Ned Batchelder
5d4b61c7f5
Better configuration for codejail.
2013-05-06 10:55:05 -04:00
Ned Batchelder
30748a06ff
Try to find the sandbox in a few places.
2013-05-06 10:55:05 -04:00
Ned Batchelder
716a97ea59
Symbolic response doesn't need to pre-import symmath any more, I think?
2013-05-06 10:55:05 -04:00
Ned Batchelder
e8da1b8f61
Turn off our debugging levers
2013-05-06 10:55:05 -04:00
Ned Batchelder
3316aeb032
Add back the not_safe_exec implementation, for debugging.
2013-05-06 10:55:05 -04:00
Ned Batchelder
ebb2624719
Make jailpy tests more convenient and informative.
2013-05-06 10:55:05 -04:00
Ned Batchelder
7c498be606
Move packages around so we can install packages into the sandbox.
2013-05-06 10:55:05 -04:00
Ned Batchelder
70930c25c1
Remove the unsafe version of safe_exec, and document the safe one.
2013-05-06 10:55:04 -04:00
Ned Batchelder
5db5426e05
Use the real safe_exec; make the seed available in the context.
2013-05-06 10:55:04 -04:00
Ned Batchelder
19e3a0ceb9
Implement safe_exec on top of jailpy (old unsafe safe_exec is still here); Remove some crazy stuff from the context; always pass globals and locals, locals are the things that can be changed.
2013-05-06 10:55:04 -04:00
Ned Batchelder
908f44b9cd
snippets aren't used. Remove them.
2013-05-06 10:55:04 -04:00
Ned Batchelder
248017b4ea
No longer need to support <coderesponse> without <codeparam>, so scrap the code.
2013-05-06 10:55:04 -04:00
Ned Batchelder
a6677aa0a8
Computed answers are run through safe_exec.
2013-05-06 10:55:04 -04:00
Ned Batchelder
37ca6bf77e
Move our specialization of safe_exec into a new module to avoid circular imports.
2013-05-06 10:55:04 -04:00
Ned Batchelder
33abe54e0d
Work in progress to sandbox the uses of eval in LMS.
2013-05-06 10:55:03 -04:00
Ned Batchelder
0a6761c9a5
Clean up this xml data file.
2013-05-06 10:55:03 -04:00
Ned Batchelder
e69a073161
Add a test for the Python in schemaresponse, and refactor the tests while I was in there.
2013-05-06 10:55:03 -04:00
Ned Batchelder
0c47f1e0b9
safe_exec can load modules for you.
2013-05-06 10:55:03 -04:00
Ned Batchelder
4bb5d14f70
Test that we can't write files
2013-05-06 10:55:03 -04:00
Ned Batchelder
6c609afdb1
LazyModule for lazily proxying module imports.
2013-05-06 10:55:03 -04:00
Ned Batchelder
17f9e4b27d
A turd left over from a test
2013-05-06 10:55:03 -04:00
Ned Batchelder
f8c5305352
Add some malware tests
2013-05-06 10:55:02 -04:00
Ned Batchelder
a9979b8aae
Killing processes isn't working.
2013-05-06 10:55:02 -04:00
Ned Batchelder
70c37130ac
A codejail package to run code securely.
2013-05-06 10:55:02 -04:00
David Baumgold
5e288b60ca
Merge pull request #1943 from edx/cleanup
...
One more attempt at making linters happier
2013-05-06 07:15:21 -07:00
Diana Huang
5b3f5a47de
Add marketing_link to the Template context dictionary.
...
Pep8 fixes
2013-05-06 10:03:00 -04:00
cahrens
e44c6b6bf8
Don't reach in to default value.
2013-05-03 17:05:02 -04:00
cahrens
32d67be5f5
Get rid of _computed_default.
2013-05-03 16:42:41 -04:00
Sarina
72584b5937
Merge pull request #1914 from edx/fix/sarina/new_formularesponse_defaults
...
Fix/sarina/new formularesponse defaults
2013-05-03 12:32:10 -07:00
cahrens
5c3719b915
Get HTML LaTeX "working" again.
2013-05-03 15:31:18 -04:00
cahrens
9dd074f25b
Cleanup.
2013-05-03 15:09:02 -04:00
David Baumgold
b344976fe7
Making linters happier
2013-05-03 15:08:28 -04:00
Diana Huang
c9a6fe18f0
Create new marketing_link function to abstract link generation
...
and use it for the new marketing site links.
2013-05-03 15:06:24 -04:00
Diana Huang
3e217c8f85
Use new login page for marketing site when student is trying to
...
access login_required page.
2013-05-03 15:04:41 -04:00
cahrens
37d594ce37
Get rid of non-editable scope.
2013-05-03 14:58:33 -04:00
Greg Price
0f7378a171
Modify UserFactory to create a profile for the user
...
This allows specification of profile parameters when creating a user. Because
the profile contents are always accessed from the database, the user must be
saved to the database before the profile is created. This means that the
profile cannot be created if the user is merely being built (and not saved)
rather than created.
2013-05-03 10:31:35 -04:00
Greg Price
e5846e64bd
Modify course registration flow for new login and registration pages
...
Now that we are using separate pages for login and registration rather than
modals, clicking the registration button for a course should direct an
unauthenticated user to the registration page, and the user should be enrolled
in the course upon successful registration. Likewise, an unauthenticated user
attempting to unenroll from a course should be directed to the login page and
subsequently unenrolled from the course upon successful login. The enrollment
change service also now uses HTTP status codes rather than JSON to communicate
status to the front end.
2013-05-03 10:01:11 -04:00
Victor Shnayder
aae40b4378
Press updates
...
LH: 381, 382, 383
2013-05-03 08:55:40 -04:00
ichuang
60977b0e74
formularesponse requires the "samples" attribute; enforce this,
...
instead of just failing with an obscure error
2013-05-02 18:56:15 -04:00
Diana Huang
45baf013fe
Merge branch 'master' into drupal-new
2013-05-02 17:04:39 -04:00
cahrens
c7713b6211
Merge branch 'master' into feature/christina/fields
2013-05-02 12:32:56 -04:00
cahrens
46100fd258
Cleanup.
2013-05-02 12:32:32 -04:00
cahrens
01ede40b03
Switching branches
2013-05-02 09:43:03 -04:00
Jay Zoldak
f2fd90bc61
Merge pull request #1917 from MITx/fix/cale/lms-jasmine-tests
...
Fix/cale/lms jasmine tests
2013-05-01 08:23:41 -07:00
Sarina Canelake
2cb3af1e35
Only throw factorial-related exception on factorial raised exception
2013-05-01 10:53:22 -04:00
cahrens
13fe9c11cb
Merged with master.
2013-05-01 09:33:35 -04:00