Traceback (most recent call last):
File "ria.py", line 40, in WsgiApp
out = tpl.show(page, request, response)
File "/home/ria/ria/tpl.py", line 15, in show
if script: vars = script(req, resp)
File "/home/ria/ria/scripts/view.py", line 11, in view
row = db.query("select title, text, short_text, img_main, date, keywords from publications where id=%s and draft='N'", (id,))[0]
IndexError: list index out of range