Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/errors/127.0.0.1.2010-06-10.09-48-22.f4f2819c-2b39-4948-a4e4-b34b79958699
diff options
context:
space:
mode:
Diffstat (limited to 'errors/127.0.0.1.2010-06-10.09-48-22.f4f2819c-2b39-4948-a4e4-b34b79958699')
-rw-r--r--errors/127.0.0.1.2010-06-10.09-48-22.f4f2819c-2b39-4948-a4e4-b34b7995869917
1 files changed, 17 insertions, 0 deletions
diff --git a/errors/127.0.0.1.2010-06-10.09-48-22.f4f2819c-2b39-4948-a4e4-b34b79958699 b/errors/127.0.0.1.2010-06-10.09-48-22.f4f2819c-2b39-4948-a4e4-b34b79958699
new file mode 100644
index 0000000..34ff3aa
--- /dev/null
+++ b/errors/127.0.0.1.2010-06-10.09-48-22.f4f2819c-2b39-4948-a4e4-b34b79958699
@@ -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)\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 session.new_image_id = form.vars.file\n redirect(URL(r=request, f='jamiesprogram')) \n elif form.errors:\n response.flash = 'form has errors'\n return dict(form=form)\n\ndef jamiesprogram():\n new_image = db(db.comment.file == URL(request.application,'default','download',args=session.new_image_id).select())\n db.comment.insert(file=os.system('python applications/turtle_art_images/modules/PngGenerator.py '+new_image))\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(jamiesprogram)\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 37, 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 19, in jamiesprogram\n new_image = db(db.comment.file == URL(request.application,\'default\',\'download\',args=session.new_image_id).select())\nAttributeError: \'str\' object has no attribute \'select\'\n'
+p8
+s. \ No newline at end of file