On 8/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> There is a bug in notebook.py in 2.7.3
>
> Line 149 of SAGE_ROOT/python2.5/site-packages/sage/server/notebook/
> notebook.py should read
>         passwd = other_user.password()
> not
>         passwd = U.password()
>
> (you can't launch the notebook otherwise, see below)
>
> Posting to sage-devel is probably not the best way to deal with this.
> Anyone care to tell me what I should have done?

Actually, this was optimal, since I just made the change in
the main branch of SAGE that I'll be releasing very soon.

Thanks!!

William

> paul-olivier-dehayes-computer:~ pdehaye$ sage
> ----------------------------------------------------------------------
> | SAGE Version 2.7.3, Release Date: 2007-08-02                       |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
>
> sage: notebook()
> ---------------------------------------------------------------------------
> <type 'exceptions.AttributeError'>        Traceback (most recent call
> last)
>
> /Users/pdehaye/<ipython console> in <module>()
>
> /Library/sage-2.7.3/local/lib/python2.5/site-packages/sage/server/
> notebook/notebook_object.py in __call__(self, *args, **kwds)
>     109     """
>     110     def __call__(self, *args, **kwds):
> --> 111         return self.notebook(*args, **kwds)
>     112
>     113     notebook = run_notebook.notebook_twisted
>
> /Library/sage-2.7.3/local/lib/python2.5/site-packages/sage/server/
> notebook/run_notebook.py in notebook_twisted(self, directory, port,
> address, port_tries, secure, reset, accounts, server_pool, ulimit,
> open_viewer)
>      75                 print "Login to the SAGE notebook as admin
> with the password you specified above."
>      76     elif nb.user_exists('root') and not
> nb.user_exists('admin'):
> ---> 77         s = nb.create_user_with_same_password('admin', 'root')
>      78
>      79
>
> /Library/sage-2.7.3/local/lib/python2.5/site-packages/sage/server/
> notebook/notebook.py in create_user_with_same_password(self, user,
> other_user)
>     147         U = self.user(user)
>     148         passwd = U.password()
> --> 149         U.set_hashed_password(passwd)
>     150
>     151     def user_is_admin(self, user):
>
> <type 'exceptions.AttributeError'>: User instance has no attribute
> 'set_hashed_password'
> sage: quit
> Exiting SAGE (CPU time 0m0.80s, Wall time 10m22.90s).
>
>
> >
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to