I wrote the script below to automatically add accounts to my notebook
server.

I ran it as follows $SAGE_DIR/sage-python XXX YYY ZZZ
for some values of XXX, YYY and ZZZ.  When I tried to login with value
in XXX for username and in YYY for password Sage notebook server did
not recognize that account??

How fix?

cs

# ====================================================
import sage.all
import sys

username  = sys.argv[1]
password  = sys.argv[2]
email     = sys.argv[3]
directory = sage.all.tmp_dir() + ".sagenb"
notebook  = sage.all.sagenb.notebook.notebook.Notebook(directory)
notebook.add_user(username, password, email, force = True)

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to