[sagenb] 124/179: Do not stop worksheets on Sign Out

felix salfelder felix-guest at moszumanska.debian.org
Tue May 6 12:05:19 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 536dfa5f7c94dc7cb6d4d24b1934460114b3e18f
Author: Andrey Novoseltsev <novoselt at gmail.com>
Date:   Tue Jun 18 15:12:43 2013 -0700

    Do not stop worksheets on Sign Out
---
 sagenb/notebook/notebook.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/sagenb/notebook/notebook.py b/sagenb/notebook/notebook.py
index a9929d0..b70cd91 100644
--- a/sagenb/notebook/notebook.py
+++ b/sagenb/notebook/notebook.py
@@ -1514,11 +1514,12 @@ class Notebook(object):
         self.__storage.save_worksheet(W, conf_only=conf_only)
 
     def logout(self, username):
-        if username is None:
-            return
-        for filename, W in self.__worksheets.items():
-            if filename.startswith(username + "/"):
-                W.quit()
+        r"""
+        Do not do anything on logout (so far).
+        
+        In particular, do **NOT** stop all ``username``'s worksheets!
+        """
+        pass
 
     def delete_doc_browser_worksheets(self):
         for w in self.users_worksheets('_sage_'):

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