Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/errors/127.0.0.1.2010-06-08.10-29-30.a9dded01-6c75-4d19-9761-5e346879dac4
blob: 605a19a18edc1e8f805f3f3682edd089a438990c (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\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, linkto=URL(r=request, f='submitted')\n    else:\n      form = SQLFORM(db.comment, fields = ['title', 'file', 'creator', 'description'], linkto=URL(r=request, f='submitted')\n    if form.accepts(request.vars, session):\n      response.flash = 'form accepted'\n    elif form.errors:\n      response.flash = 'form has errors'\n    return dict(form=form)\n\ndef jamiesprogram():\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    return dict(form=form)\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 176, in restricted\n    ccode = compile2(code,layer)\n  File "/home/acrowe/lib/python/web2py/gluon/restricted.py", line 163, in compile2\n    return compile(code.rstrip().replace(\'\\r\\n\',\'\\n\')+\'\\n\', layer, \'exec\')\n  File "/home/acrowe/lib/python/web2py/applications/turtle_art_images/controllers/default.py", line 8\n    else:\n       ^\nSyntaxError: invalid syntax\n'
p8
s.