From b817158f554f7b3342ecfe3ce24d04e91abed3c3 Mon Sep 17 00:00:00 2001 From: James Boisture Date: Tue, 20 Jul 2010 03:15:23 +0000 Subject: The initial commit of the turtleartsite --- (limited to 'errors/127.0.0.1.2010-06-15.17-10-58.d2b352f6-4294-4583-ba1e-5c2ff8d81a2f') diff --git a/errors/127.0.0.1.2010-06-15.17-10-58.d2b352f6-4294-4583-ba1e-5c2ff8d81a2f b/errors/127.0.0.1.2010-06-15.17-10-58.d2b352f6-4294-4583-ba1e-5c2ff8d81a2f new file mode 100644 index 0000000..42c60fa --- /dev/null +++ b/errors/127.0.0.1.2010-06-15.17-10-58.d2b352f6-4294-4583-ba1e-5c2ff8d81a2f @@ -0,0 +1,17 @@ +(dp1 +S'output' +p2 +S'' +sS'layer' +p3 +S'/home/dreich/lib/python/web2py/applications/turtlesite/controllers/default.py' +p4 +sS'code' +p5 +S'import os\n\ndef index():\n form = SQLFORM(db.comment, fields = [\'title\', \'file\', \'creator\', \'description\'])\n if form.accepts(request.vars, session):\n session.new_image_title = form.vars.title\n redirect(URL(r=request, f=\'jamiesprogram\')) \n return dict(form=form)\n\ndef jamiesprogram():\n newfile = db(db.comment.title==session.new_image_title).select().first()\n new_image = newfile.file\n print newfile\n os.system(\'python applications/turtle_art_images/modules/PngGenerator.py applications/turtle_art_images/uploads/\'+new_image)\n db(db.comment.title==session.new_image_title).update(newimage =\'applications/turtle_art_images/uplodates/%s.png\' % new_image[:-3])\n redirect(URL(r=request, f=\'imagelist\'))\n return dict()\n \ndef imagelist():\n comments = db().select(db.comment.ALL)\n return dict(comments=comments)\n \ndef testimage():\n\treturn db(db.comment.title=="hellotest")\n\t\n\ndef adminpage():\n db.comment.truncate()\n redirect(\'index.html\')\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/dreich/lib/python/web2py/gluon/restricted.py", line 178, in restricted\n exec ccode in environment\n File "/home/dreich/lib/python/web2py/applications/turtlesite/controllers/default.py", line 34, in \n File "/home/dreich/lib/python/web2py/gluon/globals.py", line 96, in \n self._caller = lambda f: f()\n File "/home/dreich/lib/python/web2py/applications/turtlesite/controllers/default.py", line 32, in download\n return response.download(request, db)\n File "/home/dreich/lib/python/web2py/gluon/globals.py", line 195, in download\n (filename, stream) = field.retrieve(name)\n File "/home/dreich/lib/python/web2py/gluon/sql.py", line 2725, in retrieve\n return (filename, open(os.path.join(path, name), \'rb\'))\nIOError: [Errno 2] No such file or directory: \'/home/dreich/lib/python/web2py/applications/turtlesite/databases/../uploads/comment.file.9457e6586f80fc90.7371756172652e7461.png\'\n' +p8 +s. \ No newline at end of file -- cgit v0.9.1