Hi Renato,

On Sun, Jan 14, 2007 at 06:00:57PM -0200, Renato Botelho wrote:
> Recently twisted was updated to 2.5.0 on FreeBSD ports and these both
> transports stop working.
> 
> I took a look and made these patches that fix the problem aparently:
> 
> http://people.freebsd.org/~garga/patches/jabber/jabber-pyicq.diff
> 
> http://people.freebsd.org/~garga/patches/jabber/jabber-pymsn.diff

Thanks a lot for your contribution. I've updated your patch for PyMSNt a
bit to allow it to work with both Twisted 2.4 and 2.5. The patch for
PyICQt could of course be updated accordingly.

Best regards,
Lars
Index: main.py
===================================================================
--- main.py     (revision 230)
+++ main.py     (working copy)
@@ -390,7 +390,10 @@
        # Set SIGHUP to reload the config file & close & open debug file
        signal.signal(signal.SIGHUP, SIGHUPstuff)
        # Load some scripts for PID and daemonising
-       from twisted.scripts import twistd
+       try:
+               from twisted.scripts import _twistd_unix as twistd
+       except:
+               from twisted.scripts import twistd
 
 
 def main():
_______________________________________________
py-transports mailing list
[email protected]
http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports

Reply via email to