[sagenb] 95/157: The checkboxes are already initialized in the base.html template
felix salfelder
felix-guest at moszumanska.debian.org
Mon Dec 22 16:51:56 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 e72b9d3fc21daeb8e62182191b1ecc792229fad6
Author: Volker Braun <vbraun.name at gmail.com>
Date: Sun Oct 5 15:09:12 2014 +0100
The checkboxes are already initialized in the base.html template
---
sagenb/notebook/worksheet.py | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/sagenb/notebook/worksheet.py b/sagenb/notebook/worksheet.py
index 3d9c3f3..0191cb3 100644
--- a/sagenb/notebook/worksheet.py
+++ b/sagenb/notebook/worksheet.py
@@ -1066,6 +1066,7 @@ class Worksheet(object):
check = True
self.__pretty_print = check
self.eval_asap_no_output("pretty_print_default(%r)" % check)
+
##########################################################
# 3-D plots
##########################################################
@@ -1117,8 +1118,6 @@ class Worksheet(object):
sage: nb.delete()
"""
self.__live_3D = check
- self.eval_asap_no_output("live_3D_default(%r)" % check)
- #not sure the line above does anything as I cannot trace the equivalent for pretty_print!
##########################################################
# Publication
@@ -3066,17 +3065,6 @@ except (KeyError, IOError):
A = self.attached_files()
for F in A.iterkeys():
A[F] = 0 # expire all
-
- # Check to see if the typeset/pretty print button is checked.
- # If so, send code to initialize the worksheet to have the
- # right pretty printing mode.
- if self.pretty_print():
- S.execute('pretty_print_default(True);')
- # Check to see if the live_3D button is checked. If so,
- # send code to initialize the worksheet to have the right
- # setting.
- if self.live_3D():
- S.execute('live_3D_default(True);')
if not self.is_published():
self._enqueue_auto_cells()
--
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