Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/errors/127.0.0.1.2010-06-15.16-25-54.669ae8c0-5c6b-4aa6-851b-9fea24a11495
blob: 7f3d572a5254ac665f413b56d41b20f4ca57ac31 (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/dreich/lib/python/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 = 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 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/dreich/lib/python/web2py/gluon/restricted.py", line 178, in restricted\n    exec ccode in environment\n  File "/home/dreich/lib/python/web2py/applications/turtlesite/controllers/default.py", line 29, in <module>\n  File "/home/dreich/lib/python/web2py/gluon/globals.py", line 96, in <lambda>\n    self._caller = lambda f: f()\n  File "/home/dreich/lib/python/web2py/applications/turtlesite/controllers/default.py", line 12, in jamiesprogram\n    file_name_length = len(session.new_image)\nTypeError: object of type \'NoneType\' has no len()\n'
p8
s.