fix proton rename of local endpoint events
This commit is contained in:
parent
b96c91a7aa
commit
0352dc9137
python/pyngus
@ -641,8 +641,8 @@ class Connection(Endpoint):
|
||||
_endpoint_event_map = {
|
||||
proton.Event.CONNECTION_REMOTE_OPEN: Endpoint.REMOTE_OPENED,
|
||||
proton.Event.CONNECTION_REMOTE_CLOSE: Endpoint.REMOTE_CLOSED,
|
||||
proton.Event.CONNECTION_OPEN: Endpoint.LOCAL_OPENED,
|
||||
proton.Event.CONNECTION_CLOSE: Endpoint.LOCAL_CLOSED}
|
||||
proton.Event.CONNECTION_LOCAL_OPEN: Endpoint.LOCAL_OPENED,
|
||||
proton.Event.CONNECTION_LOCAL_CLOSE: Endpoint.LOCAL_CLOSED}
|
||||
|
||||
def _handle_proton_event(self, pn_event):
|
||||
ep_event = Connection._endpoint_event_map.get(pn_event.type)
|
||||
|
@ -204,8 +204,8 @@ class _Link(Endpoint):
|
||||
_endpoint_event_map = {
|
||||
proton.Event.LINK_REMOTE_OPEN: Endpoint.REMOTE_OPENED,
|
||||
proton.Event.LINK_REMOTE_CLOSE: Endpoint.REMOTE_CLOSED,
|
||||
proton.Event.LINK_OPEN: Endpoint.LOCAL_OPENED,
|
||||
proton.Event.LINK_CLOSE: Endpoint.LOCAL_CLOSED}
|
||||
proton.Event.LINK_LOCAL_OPEN: Endpoint.LOCAL_OPENED,
|
||||
proton.Event.LINK_LOCAL_CLOSE: Endpoint.LOCAL_CLOSED}
|
||||
|
||||
@staticmethod
|
||||
def _handle_proton_event(pn_event, connection):
|
||||
@ -766,8 +766,8 @@ class _SessionProxy(Endpoint):
|
||||
_endpoint_event_map = {
|
||||
proton.Event.SESSION_REMOTE_OPEN: Endpoint.REMOTE_OPENED,
|
||||
proton.Event.SESSION_REMOTE_CLOSE: Endpoint.REMOTE_CLOSED,
|
||||
proton.Event.SESSION_OPEN: Endpoint.LOCAL_OPENED,
|
||||
proton.Event.SESSION_CLOSE: Endpoint.LOCAL_CLOSED}
|
||||
proton.Event.SESSION_LOCAL_OPEN: Endpoint.LOCAL_OPENED,
|
||||
proton.Event.SESSION_LOCAL_CLOSE: Endpoint.LOCAL_CLOSED}
|
||||
|
||||
@staticmethod
|
||||
def _handle_proton_event(pn_event, connection):
|
||||
|
Loading…
x
Reference in New Issue
Block a user