Upgrading to 1.1.6 broke TMDA-CGI
Ole Wolf <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.user |
|---|---|
| Message-ID | <[email protected]> |
I just upgraded to TMDA v. 1.1.6 from 1.0.3, and while TMDA seems to be
working as flawlessly as always, unfortunately the upgrade seems to have
broken my TMDA-CGI v. 0.13 (with the "blue" patch).
TMDA-CGI fails when I click the "Pending" link. All the other links,
including the address generation features, seem to be working as expected.
I'm not familiar with Python, so I'm in the dark. If anyone can help me,
the output from TMDA-CGI is appended below. Since it looks like is has
to do with the pending list, I tried to set PENDING_CACHE to the
complete path for my .pendingcache, but that didn't help. All I can make
of the Python error output is that TMDA-CGI can't read the pending
messages, but tmda-pending itself appears to be working.
Thanks,
--Ole
/usr/local/src/tmda-cgi-0.13/tmda-cgi.py
188 elif Cmd == "pending":
189 import PendList
190 Call(PendList)
191 elif Cmd == "restore":
192 pass
Call = <function Call>, PendList = <module 'PendList' from
'/usr/local/src/tmda-cgi-0.13/PendList.py'>
/usr/local/src/tmda-cgi-0.13/tmda-cgi.py in Call(Library=<module
'PendList' from '/usr/local/src/tmda-cgi-0.13/PendList.py'>, Str=None)
86 Library.Show(Str)
87 else:
88 Library.Show()
89
90 # Capture WebUID
Library = <module 'PendList' from
'/usr/local/src/tmda-cgi-0.13/PendList.py'>, Library.Show = <function Show>
/usr/local/src/tmda-cgi-0.13/PendList.py in Show()
434
435 # Message size
436 T["Size"] = CgiUtil.Size(MsgObj)
437
438 # Find preferred date
T = <Template.Template instance>, global CgiUtil = <module 'CgiUtil'
from '/usr/local/src/tmda-cgi-0.13/CgiUtil.pyc'>, CgiUtil.Size =
<function Size>, MsgObj = <TMDA.Pending.Message instance>
/usr/local/src/tmda-cgi-0.13/CgiUtil.py in
Size(MsgObj=<TMDA.Pending.Message instance>, MsgSize=0)
52 def Size(MsgObj = None, MsgSize = 0):
53 if MsgObj:
54 MsgSize = os.stat(MsgObj.msgfile)[6]
55 if MsgSize > 512:
56 if MsgSize > 5120:
MsgSize = 0, global os = <module 'os' from '/usr/lib/python2.4/os.pyc'>,
os.stat = <built-in function stat>, MsgObj = <TMDA.Pending.Message
instance>, MsgObj.msgfile undefined
AttributeError: Message instance has no attribute 'msgfile'
args = ("Message instance has no attribute 'msgfile'",)