Hello!

I would like to report an issue: in case of non-ascii character exists in a 
cell (like a utf-8 comment) the worksheet can not be downloaded:

2014-03-11 00:20:54+0400 [HTTPChannel,23,127.0.0.1] Starting zipping a 
group of worksheets in a separate thread...
2014-03-11 00:20:54+0400 [-] WSGI application error
Traceback (most recent call last):
  File 
"/opt/sage/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/python/threadpool.py",
 
line 212, in _worker
    o = self.q.get()
  File 
"/opt/sage/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/python/context.py",
 
line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File 
"/opt/sage/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/python/context.py",
 
line 83, in callWithContext
    self.contexts.pop()
  File 
"/opt/sage/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/web/wsgi.py",
 
line 340, in run
    self.started = True
--- <exception caught here> ---
  File 
"/opt/sage/local/lib/python2.7/site-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/web/wsgi.py",
 
line 315, in run
    appIterator = self.application(self.environ, self.startResponse)
  File 
"/opt/sage/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1836, in __call__
    return self.wsgi_app(environ, start_response)
  File 
"/opt/sage/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1820, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File 
"/opt/sage/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1403, in handle_exception
    reraise(exc_type, exc_value, tb)
  File 
"/opt/sage/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File 
"/opt/sage/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File 
"/opt/sage/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File 
"/opt/sage/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File 
"/opt/sage/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py",
 
line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File 
"/opt/sage/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/flask_version/decorators.py",
 
line 22, in wrapper
    return f(*args, **kwds)
  File 
"/opt/sage/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/flask_version/worksheet_listing.py",
 
line 214, in download_worksheets
    g.notebook.export_worksheet(worksheet.filename(), sws_filename)
  File 
"/opt/sage/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/notebook/notebook.py",
 
line 741, in export_worksheet
    S.export_worksheet(username, id_number, output_filename, title=title)
  File 
"/opt/sage/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/storage/filesystem_storage.py",
 
line 468, in export_worksheet
    f.write(old_heading + g.read())
exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in 
position 14: ordinal not in range(128)

P.S. Using Sage in Arch Linux (sage-mathematics package from community 
repo, version 6.1.1-1 x86_64)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to