Hey all,
I was very excited to try out this latest version of tmda-cgi.  It looks
great and seemed to be working fine until I tried to release a message.
I apologize for the messed up paste, but it's hard to do the error
message justice considering how nice it comes out in the browser.  I
don't know python, otherwise I could help a bit more.
I installed this system wide and am running Apache2.  I have set the
appropriate CGI_ values in my system wide tmdarc and made sure the cgi
directory is readable by the CGI_USER.

This is what I received:

AttributeError
Python 2.2.1: /usr/bin/python2
Wed Jan 1 20:01:18 2003

A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.

 /usr/lib/python2.2/site-packages/TMDA/cgi/tmda-cgi.py
  119   #cgi.print_form(PVars)
  120 
  121 # This is the end my friend.
  122 if __name__ == '__main__':
  123     main()
main = <function main>

 /usr/lib/python2.2/site-packages/TMDA/cgi/tmda-cgi.py in main()
  103     # View?
  104     if Form["cmd"].value == "list":
  105       Pending.Show()
  106     elif Form["cmd"].value == "view":
  107       if Form.has_key("msgid"):
Pending = <module 'Pending' from 'Pending.pyc'>, Pending.Show =
<function Show>

 /usr/lib/python2.2/site-packages/TMDA/cgi/Pending.py in Show()
   61             MsgObj = Pending.Message(Form["m%d" % Count].value)
   62             if Form["a%d" % Count].value == "release":
   63               MsgObj.release()
   64               PVars["InProcess"][Form["m%d" % Count].value] = 1
   65             elif Form["a%d" % Count].value == "delete":
MsgObj = <TMDA.Pending.Message instance>, MsgObj.release = <bound method
Message.release of <TMDA.Pending.Message instance at 0x825e93c>>

 /usr/lib/python2.2/site-packages/TMDA/Pending.py in
release(self=<TMDA.Pending.Message instance>)
  422         self.msgobj['X-TMDA-Released'] = Util.unixdate()
  423         # Reinject the message to the original envelope recipient.
  424         Util.sendmail(self.msgobj.as_string(), self.recipient,
self.return_path)
  425 
  426     def delete(self):
global Util = <module 'TMDA.Util' from
'/usr/lib/python2.2/site-packages/TMDA/Util.pyc'>, Util.sendmail =
<function sendmail>, self = <TMDA.Pending.Message instance>, self.msgobj
= <email.Message.Message
instance>, self.msgobj.as_string = <bound method Message.as_string of
<email.Message.Message instance at 0x8260ef4>>, self.recipient = None,
self.return_path undefined

AttributeError: Message instance has no attribute 'return_path'
      __doc__ = 'Attribute not found.'
      __getitem__ = <bound method AttributeError.__getitem__ of
<exceptions.AttributeError instance at 0x8293c64>>
      __init__ = <bound method AttributeError.__init__ of
<exceptions.AttributeError instance at 0x8293c64>>
      __module__ = 'exceptions'
      __str__ = <bound method AttributeError.__str__ of
<exceptions.AttributeError instance at 0x8293c64>>
      args = ("Message instance has no attribute 'return_path'",) 
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to