Commit 30666e41 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Switch those methods to private.


git-svn-id: https://svn.erp5.org/repos/neo/trunk@1348 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 85c4f63a
...@@ -27,8 +27,8 @@ class EventHandler(object): ...@@ -27,8 +27,8 @@ class EventHandler(object):
def __init__(self, app): def __init__(self, app):
self.app = app self.app = app
self.packet_dispatch_table = self.initPacketDispatchTable() self.packet_dispatch_table = self.__initPacketDispatchTable()
self.error_dispatch_table = self.initErrorDispatchTable() self.error_dispatch_table = self.__initErrorDispatchTable()
def __packetMalformed(self, conn, packet, message='', *args): def __packetMalformed(self, conn, packet, message='', *args):
"""Called when a packet is malformed.""" """Called when a packet is malformed."""
...@@ -369,7 +369,7 @@ class EventHandler(object): ...@@ -369,7 +369,7 @@ class EventHandler(object):
# Fetch tables initialization # Fetch tables initialization
def initPacketDispatchTable(self): def __initPacketDispatchTable(self):
d = {} d = {}
d[PacketTypes.ERROR] = self.handleError d[PacketTypes.ERROR] = self.handleError
...@@ -437,7 +437,7 @@ class EventHandler(object): ...@@ -437,7 +437,7 @@ class EventHandler(object):
return d return d
def initErrorDispatchTable(self): def __initErrorDispatchTable(self):
d = {} d = {}
d[ErrorCodes.NO_ERROR] = self.handleNoError d[ErrorCodes.NO_ERROR] = self.handleNoError
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment