<type 'exceptions.NameError'> | Python 2.5.2: /usr/bin/python Thu Mar 28 23:42:06 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/opt/ezmlm-browse-0.20/<string> in |
/opt/ezmlm-browse-0.20/main.py in main() |
424 |
425 if path is not None: |
426 main_path(path) |
427 else: |
428 main_form() |
global main_form = <function main_form at 0x96d1ca4> |
/opt/ezmlm-browse-0.20/main.py in main_form() |
368 def main_form(): |
369 global ctxt |
370 setup_list() |
371 if ctxt.has_key('command'): ctxt[COMMAND] = ctxt['command'] |
372 if '/' in ctxt[COMMAND]: |
global setup_list = <function setup_list at 0x96d1b54> |
/opt/ezmlm-browse-0.20/main.py in setup_list() |
259 base = config.archives[list] |
260 except KeyError: |
261 die(ctxt, 'Unknown list: ' + list) |
262 ctxt.update(base) |
263 eza = ctxt[EZMLM] = ezmlm.EzmlmArchive(ctxt[LISTDIR]) |
global die = <function die at 0x96d109c>, global ctxt = {'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...'title': 'Error', 'HTTP_ACCEPT_ENCODING': 'gzip'}, list = 'lucas' |
/opt/ezmlm-browse-0.20/globalfns.py in die(ctxt={'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...'title': 'Error', 'HTTP_ACCEPT_ENCODING': 'gzip'}, msg='Unknown list: lucas') |
94 def die(ctxt, msg): |
95 ctxt['message'] = msg |
96 header(ctxt, 'Error', 'error') |
97 write(html('error') % ctxt) |
98 footer(ctxt) |
global header = <function header at 0x96d102c>, ctxt = {'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...'title': 'Error', 'HTTP_ACCEPT_ENCODING': 'gzip'} |
/opt/ezmlm-browse-0.20/globalfns.py in header(ctxt={'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...'title': 'Error', 'HTTP_ACCEPT_ENCODING': 'gzip'}, title='Error', classbase='error') |
78 ctxt[CLASS] = classbase |
79 if ctxt.has_key(LIST): |
80 ctxt[MENUBAR] = _make_menubar(ctxt) |
81 else: |
82 ctxt[MENUBAR] = '' |
ctxt = {'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...'title': 'Error', 'HTTP_ACCEPT_ENCODING': 'gzip'}, global MENUBAR = 'menubar', global _make_menubar = <function _make_menubar at 0x96c9fb4> |
/opt/ezmlm-browse-0.20/globalfns.py in _make_menubar(ctxt={'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...'title': 'Error', 'HTTP_ACCEPT_ENCODING': 'gzip'}) |
69 else: |
70 ctxt['idxcmd'] = 'monthbythread' |
71 return html('menubar') % ctxt |
72 |
73 ############################################################################### |
global html = <function html at 0x96c9f0c>, ctxt = {'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...'title': 'Error', 'HTTP_ACCEPT_ENCODING': 'gzip'} |
/opt/ezmlm-browse-0.20/context.py in __getitem__(self={'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...'title': 'Error', 'HTTP_ACCEPT_ENCODING': 'gzip'}, key='optlink("[<<]", "menu-first", first_month<>month, idxcmd, month=first_month)') |
62 return self.dict[key] |
63 except KeyError: |
64 return self.eval(key) |
65 def __setitem__(self, key, val): |
66 self.dict[key] = val |
self = {'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...'title': 'Error', 'HTTP_ACCEPT_ENCODING': 'gzip'}, self.eval = <bound method Context.eval of {'cmd': 'showmsg',...title': 'Error', 'HTTP_ACCEPT_ENCODING': 'gzip'}>, key = 'optlink("[<<]", "menu-first", first_month<>month, idxcmd, month=first_month)' |
/opt/ezmlm-browse-0.20/context.py in eval(self={'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...'title': 'Error', 'HTTP_ACCEPT_ENCODING': 'gzip'}, body='optlink("[<<]", "menu-first", first_month<>month, idxcmd, month=first_month)') |
55 self.stack.append(self.dict.copy()) |
56 def eval(self, body): |
57 return eval(body, self.globals, self.dict) |
58 def execute(self, body): |
59 exec(body, self.globals, self.dict) |
builtin eval = <built-in function eval>, body = 'optlink("[<<]", "menu-first", first_month<>month, idxcmd, month=first_month)', self = {'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...'title': 'Error', 'HTTP_ACCEPT_ENCODING': 'gzip'}, self.globals = {'__builtins__': {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, ...}, 'absurl': <function absurl at 0x96d1844>, 'cmdlink': <function cmdlink at 0x96d18b4>, 'config': <module 'config' from '/opt/ezmlm-browse-0.20/config.pyc'>, 'defined': <built-in method has_key of dict object at 0x96ce2d4>, 'format_timestamp': <function <lambda> at 0x96d1d14>, 'html': <function escape_html at 0x96d1684>, 'iif': <function iif at 0x96d15dc>, 'isogmtime': <function isogmtime at 0x96d1a74>, 'markup_urls': <function markup_urls at 0x96d1764>, ...}, self.dict = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/www/lists.tldp.org//', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_HOST': 'lists.tldp.org', 'HTTP_REFERER': 'http://lists.tldp.org/go.to?list=lucas&cmd=showmsg&msgnum=3', 'HTTP_USER_AGENT': 'claudebot', 'HTTP_X_FORWARDED_FOR': '18.234.139.149', 'HTTP_X_FORWARDED_HOST': 'lists.tldp.org', ...} |
/opt/ezmlm-browse-0.20/<string> in |
<type 'exceptions.NameError'>: name 'first_month' is not defined
args =
("name 'first_month' is not defined",)
message =
"name 'first_month' is not defined"