[sagenb] 72/179: Allow more actions in live docs

felix salfelder felix-guest at moszumanska.debian.org
Tue May 6 12:05:11 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 b14f28444f92ba2ff233004cb5d4fc4f8170f0b5
Author: Nicolas M. Thiery <nthiery at users.sf.net>
Date:   Tue Nov 13 02:01:11 2012 -0800

    Allow more actions in live docs
    
    This patch fixes the white list to enable some missing notebook actions
    and features in the live documentation:
    
    - Introspection
    - Delete all output
    - Copy worksheet
    - New cell after
    - Restart Sage
    
    And certainly more.
---
 flask_version/worksheet.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/flask_version/worksheet.py b/flask_version/worksheet.py
index f293418..3475935 100644
--- a/flask_version/worksheet.py
+++ b/flask_version/worksheet.py
@@ -96,7 +96,8 @@ def worksheet(username, id, worksheet=None):
 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'])
+                          'new_cell_after', 'introspect', 'delete_all_output',
+                          'copy', 'restart_sage'])
 
 readonly_commands_allowed = set(['alive', 'cells', 'data', 'datafile', 'download', 'quit_sage', 'rating_info', 'delete_all_output'])
 

-- 
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