Letractively / sagenb

Automatically exported from code.google.com/p/sagenb
0 stars 0 forks source link

Unicode username formatting error #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Here is another unicode error, this time for formatting the username, in the 
flask notebook:

2011-11-23 04:50:17-0800 [-] WSGI application error
        Traceback (most recent call last):
          File "/sagenb/sage_install/sage-4.7.2/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/python/threadpool.py", line 230, in _worker
            o = self.q.get()
          File "/sagenb/sage_install/sage-4.7.2/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/sagenb/sage_install/sage-4.7.2/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 83, in callWithContext
            self.contexts.pop()
          File "/sagenb/sage_install/sage-4.7.2/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/web/wsgi.py", line 338, in run
            self.started = True
        --- <exception caught here> ---
          File "/sagenb/sage_install/sage-4.7.2/local/lib/python2.6/site-packages/Twisted-11.0.0-py2.6-linux-x86_64.egg/twisted/web/wsgi.py", line 313, in run
            appIterator = self.application(self.environ, self.startResponse)
          File "/sagenb/sage_install/sage-4.7.2/local/lib/python2.6/site-packages/flask/app.py", line 1518, in __call__            return self.wsgi_app(environ, start_response)
          File "/sagenb/sage_install/sage-4.7.2/local/lib/python2.6/site-packages/flask/app.py", line 1506, in wsgi_app            response = self.make_response(self.handle_exception(e))          File "/sagenb/sage_install/sage-4.7.2/local/lib/python2.6/site-packages/flask/app.py", line 1504, in wsgi_app            response = self.full_dispatch_request()
          File "/sagenb/sage_install/sage-4.7.2/local/lib/python2.6/site-packages/flask/app.py", line 1264, in full_dispatch_request
            rv = self.handle_user_exception(e)
          File "/sagenb/sage_install/sage-4.7.2/local/lib/python2.6/site-packages/flask/app.py", line 1262, in full_dispatch_request            rv = self.dispatch_request()
          File "/sagenb/sage_install/sage-4.7.2/local/lib/python2.6/site-packages/flask/app.py", line 1248, in dispatch_request
            return self.view_functions[rule.endpoint](**req.view_args)
          File "/sagenb/sage_install/sage-4.7.2/devel/sagenb/flask_version/authentication.py", line 40, in login
            U = g.notebook.user_manager().user(username)          File "/sagenb/sage_install/sage-4.7.2/devel/sagenb-flask/sagenb/notebook/user_manager.py", line 110, in user
            return self._user(username)          File "/sagenb/sage_install/sage-4.7.2/devel/sagenb-flask/sagenb/notebook/user_manager.py", line 423, in _user            raise KeyError("no user '{0}'".format(username))        exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\u2006' in position 2: ordinal not in range(128)

Original issue reported on code.google.com by grout.ja...@gmail.com on 23 Nov 2011 at 1:00

GoogleCodeExporter commented 8 years ago
Took care of this in 5b5f24d06e14

Original comment by jason-go...@creativetrax.com on 13 Dec 2011 at 8:53

GoogleCodeExporter commented 8 years ago
William reviewed the latest git notebook.

Original comment by jason-go...@creativetrax.com on 10 Jan 2012 at 4:14