Letractively / sagenb

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

Internal Server Error after deleting a published worksheet #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  A student in my class published their homework to http://flask.sagenb.org
2.  I logged in as admin, then found the worksheet, and unpublished it.
3. Internal Server Error
4. I looked in the notebook log file and found this traceback:

2011-04-05 16:37:39-0700 [-] Exception rendering:
2011-04-05 16:37:39-0700 [-] Unhandled Error
        Traceback (most recent call last):
          File "/sagenb/flask/sage-4.6.2/local/lib/python/threading.py", line 477, in run
            self.__target(*self.__args, **self.__kwargs)
          File "/sagenb/flask/sage-4.6.2/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-linux-x86_64.egg/twisted/python/threadpool.py", line 210, in _worker
            result = context.call(ctx, function, *args, **kwargs)
          File "/sagenb/flask/sage-4.6.2/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 59, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/sagenb/flask/sage-4.6.2/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-linux-x86_64.egg/twisted/python/context.py", line 37, in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File "/sagenb/flask/sage-4.6.2/local/lib/python2.6/site-packages/Twisted-9.0.0-py2.6-linux-x86_64.egg/twisted/web2/wsgi.py", line 190, in run
            result = self.application(self.environment, self.startWSGIResponse)
          File "/sagenb/flask/sage-4.6.2/local/lib/python2.6/site-packages/Flask-0.6.1-py2.6.egg/flask/app.py", line 889, in __call__
            return self.wsgi_app(environ, start_response)
          File "/sagenb/flask/sage-4.6.2/local/lib/python2.6/site-packages/Flask-0.6.1-py2.6.egg/flask/app.py", line 879, in wsgi_app
            response = self.make_response(self.handle_exception(e))
          File "/sagenb/flask/sage-4.6.2/local/lib/python2.6/site-packages/Flask-0.6.1-py2.6.egg/flask/app.py", line 876, in wsgi_app
            rv = self.dispatch_request()
          File "/sagenb/flask/sage-4.6.2/local/lib/python2.6/site-packages/Flask-0.6.1-py2.6.egg/flask/app.py", line 695, in dispatch_request
            return self.view_functions[rule.endpoint](**req.view_args)
          File "/sagenb/flask/sage-4.6.2/devel/sagenb/flask_version/decorators.py", line 39, in wrapper
            return f(*args, **kwds)
          File "/sagenb/flask/sage-4.6.2/devel/sagenb/flask_version/worksheet_listing.py", line 148, in public_worksheet
            return g.notebook.html(worksheet_filename=filename, username = g.username)
          File "/sagenb/flask/sage-4.6.2/devel/rkirov-flask/sagenb/notebook/notebook.py", line 1288, in html
            if W.docbrowser():
        exceptions.AttributeError: 'NoneType' object has no attribute 'docbrowser'

Original issue reported on code.google.com by wst...@gmail.com on 5 Apr 2011 at 11:41

GoogleCodeExporter commented 8 years ago
On my local notebook, I created a new user, published a worksheet as the new 
user, then logged in as admin and unpublished the worksheet.  No errors were 
displayed in the log or in the notebook.  The worksheet appeared to be 
unpublished.

Original comment by jason-go...@creativetrax.com on 6 Apr 2011 at 2:03

GoogleCodeExporter commented 8 years ago
If you pull from me, this should be fixed in this commit:

http://code.google.com/r/jasongrout-sagenb/source/detail?r=f4c6cd851ca271498dead
214dd26badf1cd239ce

Original comment by jason-go...@creativetrax.com on 6 Apr 2011 at 2:04

GoogleCodeExporter commented 8 years ago

Original comment by jason-go...@creativetrax.com on 21 Apr 2011 at 8:40