Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/chat
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2006-05-05 19:19:23 (GMT)
committer Dan Williams <dcbw@redhat.com>2006-05-05 19:19:23 (GMT)
commitd984e98de858c1c05b91eba81ed859187ff68469 (patch)
tree988752b851241ddff6cd11e2a2897c4374969904 /chat
parent615eb60550f245e9e55c58f8daa7706e81f56461 (diff)
Merge
Diffstat (limited to 'chat')
-rwxr-xr-xchat/chat.py2
-rw-r--r--chat/network.py35
2 files changed, 1 insertions, 36 deletions
diff --git a/chat/chat.py b/chat/chat.py
index a5f3fc8..f4716ed 100755
--- a/chat/chat.py
+++ b/chat/chat.py
@@ -344,7 +344,7 @@ class GroupChat(Chat):
chat = BuddyChat(self, sender)
sender.set_chat(chat)
chat.activity_connect_to_shell()
- chat.recv_message(message)
+ chat.recv_message(sender, msg)
def run(self):
try:
diff --git a/chat/network.py b/chat/network.py
index bc1aa8c..dc80a94 100644
--- a/chat/network.py
+++ b/chat/network.py
@@ -75,41 +75,6 @@ class GlibXMLRPCServer(GlibTCPServer, SimpleXMLRPCServer.SimpleXMLRPCDispatcher)
SimpleXMLRPCServer.SimpleXMLRPCDispatcher.__init__(self)
GlibTCPServer.__init__(self, addr, requestHandler)
- def _marshaled_dispatch(self, data, dispatch_method = None):
- """Dispatches an XML-RPC method from marshalled (XML) data.
-
- XML-RPC methods are dispatched from the marshalled (XML) data
- using the _dispatch method and the result is returned as
- marshalled data. For backwards compatibility, a dispatch
- function can be provided as an argument (see comment in
- SimpleXMLRPCRequestHandler.do_POST) but overriding the
- existing method through subclassing is the prefered means
- of changing method dispatch behavior.
- """
-
- params, method = xmlrpclib.loads(data)
-
- # generate response
- try:
- if dispatch_method is not None:
- response = dispatch_method(method, params)
- else:
- response = self._dispatch(method, params)
- # wrap response in a singleton tuple
- response = (response,)
- response = xmlrpclib.dumps(response, methodresponse=1)
- except Fault, fault:
- response = xmlrpclib.dumps(fault)
- except:
- print "Exception while processing request:"
- traceback.print_exc()
- # report exception back to server
- response = xmlrpclib.dumps(
- xmlrpclib.Fault(1, "%s:%s" % (sys.exc_type, sys.exc_value))
- )
-
- return response
-
class GroupChatController(object):