Bug#508367: Patch: pycocuma-server crashes with python2.5

2009-11-30 Thread Tiago Saboga
On Sat, Nov 28, 2009 at 3:30 PM, Christoph Berg m...@debian.org wrote:
 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.

I think I can have a look at this in the next few days if it can be
useful. But the package has not changed upstream for 4 years now and
popcon shows few users; is it really worth the effort of maintaining
it in debian? Personnaly, I have finally migrated to emacs/bbdb...

Tiago Saboga.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#508367: Patch: pycocuma-server crashes with python2.5

2009-11-28 Thread Christoph Berg
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.0 -0200
 +++ pycocumalib/CoCuMa_Server.py  2008-12-10 14:20:27.0 -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
-- 
c...@df7cb.de | http://www.df7cb.de/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#508367: Patch: pycocuma-server crashes with python2.5

2008-12-10 Thread Tiago Saboga
tags 508367 patch
thanks

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.

Thanks,

Tiago Saboga.

--- pycocumalib/CoCuMa_Server.py.orig	2008-12-10 14:05:58.0 -0200
+++ pycocumalib/CoCuMa_Server.py	2008-12-10 14:20:27.0 -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):