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.10-59-23.4caf31af-e05f-4a66-b90c-8fac85ea2797') diff --git a/errors/127.0.0.1.2010-06-15.10-59-23.4caf31af-e05f-4a66-b90c-8fac85ea2797 b/errors/127.0.0.1.2010-06-15.10-59-23.4caf31af-e05f-4a66-b90c-8fac85ea2797 new file mode 100644 index 0000000..1377453 --- /dev/null +++ b/errors/127.0.0.1.2010-06-15.10-59-23.4caf31af-e05f-4a66-b90c-8fac85ea2797 @@ -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\ndef index():\n form = SQLFORM(db.comment, fields = ['title', 'file', 'creator', 'description'])\n if form.accepts(request.vars, session):\n session.new_image = form.vars.file\n session.new_image_title = form.vars.title\n redirect(URL(r=request, f='jamiesprogram')) \n return dict(form=form)\n\ndef jamiesprogram():\n file_name_length = len(session.new_image)\n os.system('python applications/turtle_art_images/modules/PngGenerator.py applications/turtle_art_images/uploads/'+session.new_image)\n db(db.comment.title==session.new_image_title).update(newimage ='applications/turtle_art_images/uplodates/%s.png' % session.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 adminpage():\n db.comment.truncate()\n redirect('index.html')\n\ndef imagetemplate():\n session.viewed_image_title = row.title\n return dict()\n \ndef download():\n return response.download(request, db)\n\nresponse._vars=response._caller(imagetemplate)\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 33, in \n File "/home/acrowe/lib/python/web2py/gluon/globals.py", line 96, in \n self._caller = lambda f: f()\n File "/home/acrowe/lib/python/web2py/applications/turtle_art_images/controllers/default.py", line 27, in imagetemplate\n session.viewed_image_title = row.title\nNameError: global name \'row\' is not defined\n' +p8 +s. \ No newline at end of file -- cgit v0.9.1