Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/errors/127.0.0.1.2010-06-26.14-29-11.c5ef7ec4-58fa-4c31-bd75-6e9807bad314
blob: 68b76e837fd4b610116c75b1a69d393c2e2a0554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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    print db(db.comment.title=="test").select()[0][\'file\']\n    print newfile.title\n    import pdb\n    pdb.set)trace()\n    new_image = newfile.file\n    print newfile\n    \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(index)\n'
p6
sS'traceback'
p7
S'Traceback (most recent call last):\n  File "/home/jboisture/web2py/gluon/restricted.py", line 176, in restricted\n    ccode = compile2(code,layer)\n  File "/home/jboisture/web2py/gluon/restricted.py", line 163, in compile2\n    return compile(code.rstrip().replace(\'\\r\\n\',\'\\n\')+\'\\n\', layer, \'exec\')\n  File "/home/jboisture/web2py/applications/turtlesite/controllers/default.py", line 15\n    pdb.set)trace()\n           ^\nSyntaxError: invalid syntax\n'
p8
s.