Vincent Delecroix
unread,Sep 21, 2015, 1:41:06 AM9/21/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-notebook
Hello,
I have a script to automatically create users from text files that is
attached. But I currently have some troubles with it. I used to do the
following
from sagenb.notebook.notebook import load_notebook
nb = load_notebook(MY_DIR)
U = nb.user_manager()
U.add_user(NAME, PASS, MAIL, force=True)
nb.save()
Is that the right procedure? To delete a user it is basically the same
with U.delete_user(NAME). Is that fine as well?
1. Once I delete a user, if I try to login I ended up on a blank page!
Whereas if the login name is wrong I get an error message like "username
not in the database" within the login page.
2. The method to create one user works fine if I do it from the Sage
console. Though, if I launch the script the result is very strange: I
can see the users from the console (i.e. they appear in U.usernames())
but if I try to login in the notebook it says "username not in the
database".
Any insight for 1 or 2 would be appreciated.
Thanks!
Vincent
PS: My server is running Sage 6.1.1 with sagenb-0.10.8.2