Commit aac43b45 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Add some XXX.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1807 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent f1fa5efc
...@@ -97,17 +97,22 @@ class EpollEventManager(object): ...@@ -97,17 +97,22 @@ class EpollEventManager(object):
self._pending_processing = [] self._pending_processing = []
def getConnectionList(self): def getConnectionList(self):
# XXX: use index
return [x for x in self.connection_dict.values() if not x.isAborted()] return [x for x in self.connection_dict.values() if not x.isAborted()]
def getClientList(self): def getClientList(self):
# XXX: use index
return [c for c in self.getConnectionList() if c.isClient()] return [c for c in self.getConnectionList() if c.isClient()]
def getServerList(self): def getServerList(self):
# XXX: use index
return [c for c in self.getConnectionList() if c.isServer()] return [c for c in self.getConnectionList() if c.isServer()]
def getConnectionListByUUID(self, uuid): def getConnectionListByUUID(self, uuid):
""" Return the connection associated to the UUID, None if the UUID is """ Return the connection associated to the UUID, None if the UUID is
None, invalid or not found""" None, invalid or not found"""
# XXX: use index
# XXX: consider remove UUID from connection and thus this method
if uuid is None: if uuid is None:
return None return None
result = [] result = []
......
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