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-08.11-37-10.e61d028b-9f3b-4663-890c-0fd6f63402b1') diff --git a/errors/127.0.0.1.2010-06-08.11-37-10.e61d028b-9f3b-4663-890c-0fd6f63402b1 b/errors/127.0.0.1.2010-06-08.11-37-10.e61d028b-9f3b-4663-890c-0fd6f63402b1 new file mode 100644 index 0000000..bec9a01 --- /dev/null +++ b/errors/127.0.0.1.2010-06-08.11-37-10.e61d028b-9f3b-4663-890c-0fd6f63402b1 @@ -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 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, linkto=URL(r=request, f='jamiesprogram'))\n else:\n form = SQLFORM(db.comment, fields = ['title', 'file', 'creator', 'description'], linkto=URL(r=request, f='jamiesprogram'))\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.title))\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 remove(applications.turtle_art_image.uploads)\n mkdir(applications.turtle_art_image.uploads)\n redirect('index.html')\n\ndef imagetemplate():\n return dict()\n \ndef download():\n return response.download(request, db)\n\nresponse._vars=response._caller(adminpage)\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 36, 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 26, in adminpage\n remove(applications.turtle_art_image.uploads)\nNameError: global name \'remove\' is not defined\n' +p8 +s. \ No newline at end of file -- cgit v0.9.1