tags 508367 = help
thanks
Re: Tiago Saboga 2008-12-10 <20081210162340.gc12...@localdomain>
> Here is a simple patch to revert to the python's own
> SimpleXMLRPCServer class. With this patch, one can have some problems
> with 2.4, but 2.4 is not supported by the package anyway.
Hi Tiago,
thanks for the patch. Unfortunately, it doesn't seem to fix the issue
here. I guess python (or any of the modules involved) changed since
you wrote the patch.
I will need to dig into the problem. Any help is appreciated, my
python knowledge is rather limited, unfortunately.
> --- pycocumalib/CoCuMa_Server.py.orig 2008-12-10 14:05:58.000000000 -0200
> +++ pycocumalib/CoCuMa_Server.py 2008-12-10 14:20:27.000000000 -0200
> @@ -20,18 +20,6 @@
> import debug
> import broadcaster
>
> -class XMLRPCServer(SocketServer.TCPServer,
> SimpleXMLRPCServer.SimpleXMLRPCDispatcher):
> - """Overridden SimpleXMLRPCServer
> -
> - We want allow_reuse_address==True"""
> - def __init__(self, addr,
> requestHandler=SimpleXMLRPCServer.SimpleXMLRPCRequestHandler,
> - logRequests=1):
> - self.logRequests = logRequests
> - self.allow_reuse_address = 1
> -
> - SimpleXMLRPCServer.SimpleXMLRPCDispatcher.__init__(self)
> - SocketServer.TCPServer.__init__(self, addr, requestHandler)
> -
> class CoCuMa_Server:
> def __init__(self, addressbook_fname, calendar_fname):
> self._cards_modified = False
> @@ -187,7 +175,7 @@
>
> import socket
> try:
> - xmlsrv = XMLRPCServer((Preferences.get("server.listen_host"),
> + xmlsrv =
> SimpleXMLRPCServer.SimpleXMLRPCServer((Preferences.get("server.listen_host"),
> int(Preferences.get("server.listen_port"))))
> except socket.error:
> # Try to connect to ourself (check if we are already running):
Christoph
--
[email protected] | http://www.df7cb.de/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]