comparison src/backend.py @ 397:a4980d03b3a3

backend: fixed items data copy on notification
author Goffi <goffi@goffi.org>
date Mon, 11 Mar 2019 20:43:51 +0100
parents 562e7a01218d
children 1dc606612405
comparison
equal deleted inserted replaced
396:562e7a01218d 397:a4980d03b3a3
1455 allowed_items = [] #we keep only item which subscriber can access 1455 allowed_items = [] #we keep only item which subscriber can access
1456 1456
1457 if schema is not None: 1457 if schema is not None:
1458 # we have to copy items_data because different subscribers may receive 1458 # we have to copy items_data because different subscribers may receive
1459 # different items (e.g. read restriction in schema) 1459 # different items (e.g. read restriction in schema)
1460 items_data = itemDataCopy(items_data) 1460 items_data = [itemDataCopy(item_data) for item_data in items_data]
1461 self.backend.filterItemsWithSchema(items_data, schema, False) 1461 self.backend.filterItemsWithSchema(items_data, schema, False)
1462 1462
1463 for item_data in items_data: 1463 for item_data in items_data:
1464 item, access_model = item_data.item, item_data.access_model 1464 item, access_model = item_data.item, item_data.access_model
1465 access_list = item_data.config 1465 access_list = item_data.config