diff options
author | James Boisture <jboisture@jboisture-laptop.(none)> | 2010-07-20 03:15:23 (GMT) |
---|---|---|
committer | James Boisture <jboisture@jboisture-laptop.(none)> | 2010-07-20 03:15:23 (GMT) |
commit | b817158f554f7b3342ecfe3ce24d04e91abed3c3 (patch) | |
tree | 632bc4515e4feb5440714acb3b893aaa9b22a91d /errors/127.0.0.1.2010-06-08.14-54-09.9693a11a-6863-4021-b6c7-a461052d36d3 |
The initial commit of the turtleartsite
Diffstat (limited to 'errors/127.0.0.1.2010-06-08.14-54-09.9693a11a-6863-4021-b6c7-a461052d36d3')
-rw-r--r-- | errors/127.0.0.1.2010-06-08.14-54-09.9693a11a-6863-4021-b6c7-a461052d36d3 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/errors/127.0.0.1.2010-06-08.14-54-09.9693a11a-6863-4021-b6c7-a461052d36d3 b/errors/127.0.0.1.2010-06-08.14-54-09.9693a11a-6863-4021-b6c7-a461052d36d3 new file mode 100644 index 0000000..3afe93f --- /dev/null +++ b/errors/127.0.0.1.2010-06-08.14-54-09.9693a11a-6863-4021-b6c7-a461052d36d3 @@ -0,0 +1,17 @@ +(dp1 +S'output' +p2 +S'' +sS'layer' +p3 +S'/home/acrowe/lib/python/web2py/applications/turtle_art_images/controllers/default.py' +p4 +sS'code' +p5 +S"import os\n\nsession.converting = False\n\ndef index():\n if session.converting == True:\n redirect('jamiesprogram.html')\n else:\n os.system('python PngGenerator '+URL(request.application,'default','download',args=db.comment.file))\n session.converting = True\n if len(request.args):\n records = db(db.comment.image_id==request.args[0]).select()\n if len(request.args) and len(records):\n form = SQLFORM(db.comment, records[0], deletable=True)\n else:\n form = SQLFORM(db.comment, fields = ['title', 'file', 'creator', 'description'])\n if form.accepts(request.vars, session):\n response.flash = 'form accepted'\n elif form.errors:\n response.flash = 'form has errors'\n return dict(form=form)\n\ndef jamiesprogram():\n os.system('python PngGenerator '+URL(request.application,'default','download',args=db.comment.file))\n return dict()\n \ndef imagelist():\n comments = db().select(db.comment.ALL)\n return dict(comments=comments)\n \ndef adminpage():\n db.comment.truncate()\n redirect('index.html')\n\ndef imagetemplate():\n return dict()\n \ndef download():\n return response.download(request, db)\n\nresponse._vars=response._caller(download)\n" +p6 +sS'traceback' +p7 +S'Traceback (most recent call last):\n File "/home/acrowe/lib/python/web2py/gluon/restricted.py", line 178, in restricted\n exec ccode in environment\n File "/home/acrowe/lib/python/web2py/applications/turtle_art_images/controllers/default.py", line 41, in <module>\n File "/home/acrowe/lib/python/web2py/gluon/globals.py", line 96, in <lambda>\n self._caller = lambda f: f()\n File "/home/acrowe/lib/python/web2py/applications/turtle_art_images/controllers/default.py", line 39, in download\n return response.download(request, db)\n File "/home/acrowe/lib/python/web2py/gluon/globals.py", line 195, in download\n (filename, stream) = field.retrieve(name)\n File "/home/acrowe/lib/python/web2py/gluon/sql.py", line 2731, in retrieve\n return (filename, open(os.path.join(path, name), \'rb\'))\nIOError: [Errno 2] No such file or directory: \'/home/acrowe/lib/python/web2py/applications/turtle_art_images/databases/../uploads/comment.file.af4e1bfe942c4acc.747572746c65617274746573742e7461.ta\'\n' +p8 +s.
\ No newline at end of file |