[sagenb] 137/157: Add jsmol to the allowed commands for public worksheets

felix salfelder felix-guest at moszumanska.debian.org
Mon Dec 22 16:52:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit bd7d7fcfdace88557eb704ae3f962eb13d8ff254
Author: Volker Braun <vbraun.name at gmail.com>
Date:   Thu Nov 6 15:19:45 2014 +0000

    Add jsmol to the allowed commands for public worksheets
---
 sagenb/flask_version/worksheet.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sagenb/flask_version/worksheet.py b/sagenb/flask_version/worksheet.py
index fd0dcf2..2e62d52 100644
--- a/sagenb/flask_version/worksheet.py
+++ b/sagenb/flask_version/worksheet.py
@@ -99,9 +99,9 @@ published_commands_allowed = set(['alive', 'cells', 'cell_update',
                           'data', 'download', 'edit_published_page', 'eval',
                           'quit_sage', 'rate', 'rating_info', 'new_cell_before',
                           'new_cell_after', 'introspect', 'delete_all_output',
-                          'copy', 'restart_sage'])
+                          'copy', 'restart_sage', 'jsmol'])
 
-readonly_commands_allowed = set(['alive', 'cells', 'data', 'datafile', 'download', 'quit_sage', 'rating_info', 'delete_all_output'])
+readonly_commands_allowed = set(['alive', 'cells', 'data', 'datafile', 'download', 'quit_sage', 'rating_info', 'delete_all_output', 'jsmol'])
 
 def worksheet_command(target, **route_kwds):
     if 'methods' not in route_kwds:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list