<type 'exceptions.NameError'> | Python 2.5.2: /usr/bin/python Mon May 13 06:51:35 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 0x8751c6c> |
/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 0x8751b1c> |
/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 0x8751064>, global ctxt = {'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, list = 'feedback' |
/opt/ezmlm-browse-0.20/globalfns.py in die(ctxt={'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, msg='Unknown list: feedback') |
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 0x8749fb4>, ctxt = {'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'} |
/opt/ezmlm-browse-0.20/globalfns.py in header(ctxt={'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, 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...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, global MENUBAR = 'menubar', global _make_menubar = <function _make_menubar at 0x8749f7c> |
/opt/ezmlm-browse-0.20/globalfns.py in _make_menubar(ctxt={'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}) |
69 else: |
70 ctxt['idxcmd'] = 'monthbythread' |
71 return html('menubar') % ctxt |
72 |
73 ############################################################################### |
global html = <function html at 0x8749ed4>, ctxt = {'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'} |
/opt/ezmlm-browse-0.20/context.py in __getitem__(self={'cmd': 'showmsg', 'HTTP_X_FORWARDED_SERVER': 'g...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, 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...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, self.eval = <bound method Context.eval of {'cmd': 'showmsg',...TTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}>, 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...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, 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...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, 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 0x875180c>, 'cmdlink': <function cmdlink at 0x875187c>, 'config': <module 'config' from '/opt/ezmlm-browse-0.20/config.pyc'>, 'defined': <built-in method has_key of dict object at 0x874e2d4>, 'format_timestamp': <function <lambda> at 0x8751cdc>, 'html': <function escape_html at 0x875164c>, 'iif': <function iif at 0x87515a4>, 'isogmtime': <function isogmtime at 0x8751a3c>, 'markup_urls': <function markup_urls at 0x875172c>, ...}, self.dict = {'CONTENT_LENGTH': '0', 'DOCUMENT_ROOT': '/www/lists.tldp.org//', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate', 'HTTP_HOST': 'lists.tldp.org', 'HTTP_REFERER': 'http://lists.tldp.org/go.to?list=feedback&cmd=showmsg&msgnum=11901', 'HTTP_USER_AGENT': 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Geck...patible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_X_FORWARDED_FOR': '3.137.166.124', '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"