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-22.17-58-24.43169241-d580-433a-9534-40fd95c8ba0e |
The initial commit of the turtleartsite
Diffstat (limited to 'errors/127.0.0.1.2010-06-22.17-58-24.43169241-d580-433a-9534-40fd95c8ba0e')
-rw-r--r-- | errors/127.0.0.1.2010-06-22.17-58-24.43169241-d580-433a-9534-40fd95c8ba0e | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/errors/127.0.0.1.2010-06-22.17-58-24.43169241-d580-433a-9534-40fd95c8ba0e b/errors/127.0.0.1.2010-06-22.17-58-24.43169241-d580-433a-9534-40fd95c8ba0e new file mode 100644 index 0000000..30cafe8 --- /dev/null +++ b/errors/127.0.0.1.2010-06-22.17-58-24.43169241-d580-433a-9534-40fd95c8ba0e @@ -0,0 +1,17 @@ +(dp1 +S'output' +p2 +S'' +sS'layer' +p3 +S'/home/jboisture/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 import pdb\n pdb.set_trace()\n new_image = newfile.file\n print newfile\n os.system(\'python applications/turtlesite/modules/PngGenerator.py applications/turtlesite/uploads/\'+new_image)\n db(db.comment.title==session.new_image_title).update(newimage =\'applications/turtlesite/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(jamiesprogram)\n' +p6 +sS'traceback' +p7 +S'Traceback (most recent call last):\n File "/home/jboisture/web2py/gluon/restricted.py", line 178, in restricted\n exec ccode in environment\n File "/home/jboisture/web2py/applications/turtlesite/controllers/default.py", line 36, in <module>\n File "/home/jboisture/web2py/gluon/globals.py", line 96, in <lambda>\n self._caller = lambda f: f()\n File "/home/jboisture/web2py/applications/turtlesite/controllers/default.py", line 14, in jamiesprogram\n new_image = newfile.file\n File "/home/jboisture/web2py/applications/turtlesite/controllers/default.py", line 14, in jamiesprogram\n new_image = newfile.file\n File "/usr/lib/python2.6/bdb.py", line 46, in trace_dispatch\n return self.dispatch_line(frame)\n File "/usr/lib/python2.6/bdb.py", line 65, in dispatch_line\n if self.quitting: raise BdbQuit\nBdbQuit\n' +p8 +s.
\ No newline at end of file |