| <type 'exceptions.TypeError'> | Python 2.5: /usr/home/lev/Python-2.5/python Mon Sep 6 22:41:51 2010 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/lev/www/cgi-bin/mbl.cgi in |
| 11 |
| 12 print "Content-type: text/html; \r\n\r\n" |
| 13 print |
| 14 |
| 15 print mbl.respond(cgi.FieldStorage()) |
| mbl = <module 'mbl' from '/usr/home/lev/mbl/mbl.py'>, mbl.respond = <function respond at 0x8349994>, cgi = <module 'cgi' from '/usr/home/lev/Python-2.5/Lib/cgi.py'>, cgi.FieldStorage = <class cgi.FieldStorage at 0x83441ac> |
| /usr/home/lev/mbl/mbl.py in respond(query=FieldStorage(None, None, [MiniFieldStorage('page...texts'), MiniFieldStorage('unit', 'elbrus2005')])) |
| 17 |
| 18 def respond(query): |
| 19 return start_page(query) |
| 20 |
| 21 def start_page(query): |
| global start_page = <function start_page at 0x8349f7c>, query = FieldStorage(None, None, [MiniFieldStorage('page...texts'), MiniFieldStorage('unit', 'elbrus2005')]) |
| /usr/home/lev/mbl/mbl.py in start_page(query=FieldStorage(None, None, [MiniFieldStorage('page...texts'), MiniFieldStorage('unit', 'elbrus2005')])) |
| 31 else: (title,content) = mytemplates.page_main() |
| 32 header = header_generator() |
| 33 return mytemplates.layout % vars() |
| 34 |
| 35 def header_generator (): |
| global mytemplates = <module 'mytemplates' from '/usr/home/lev/mbl/mytemplates.py'>, mytemplates.layout = '\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tr...eview();\n} catch(err) {}</script>\n</body>\n</html>', builtin vars = <built-in function vars> |
<type 'exceptions.TypeError'>: not enough arguments for format string