remove old header_signature formating
@@ -23,12 +23,9 @@ LOGGER = logging.getLogger(__name__)
def process_event(type, attributes):
- transaction_id = None
entities_changed = None
data = {}
for item in attributes:
- if item.key == 'header_signature':
- transaction_id = item.value
if item.key == 'entities_changed':
entities_changed = json.loads(item.value)
@@ -38,7 +35,8 @@ def process_event(type, attributes):
data = entity
if not data:
data = entities_changed
- return transaction_id, data
+ return data
+
def get_value_from_key(attributes, key):
for item in attributes:
@@ -161,7 +159,7 @@ class WSEventSocketHandler(BasicWebSocketHandler):
else:
event_response = {}
event_response['type'] = event.event_type
- event_response['transaction_id'], event_response['data'] = process_event(event.event_type, event.attributes)
+ event_response['data'] = process_event(event.event_type, event.attributes)
for web_sock in self._events[event_response['type']]:
if web_sock.closed:
