Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/errors/127.0.0.1.2010-06-09.11-18-55.8a80bce6-882e-4316-a22a-2dbdf30350ce
blob: 5ab42ae96c0e2eb77c7cf9ca4293fcabd2da5fa2 (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/acrowe/lib/python/web2py/applications/turtle_art_images/controllers/default.py'
p4
sS'code'
p5
S"import os\n\nsession.converting = False\n\ndef index():\n    import applications.turtle_art_images.modules.PngGenerator\n    PngGenerator.TurtleMain(db.comment.file)\n    session.converting = True\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    elif form.errors:\n      response.flash = 'form has errors'\n    newta = db().select(db.comment.ALL)\n    return dict(form=form, newta=newta)\n\ndef jamiesprogram():\n    os.system('python PngGenerator '+URL(request.application,'default','download',args=db.comment.file))\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(index)\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 40, 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 7, in index\n    PngGenerator.TurtleMain(db.comment.file)\nNameError: global name \'PngGenerator\' is not defined\n'
p8
s.