Skip to content
Snippets Groups Projects
Commit 2f5cfc08 authored by jkerdreu's avatar jkerdreu
Browse files

new metadb API



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2434 b32b6428-25c9-4566-ad07-03861ab6144f
parent f90acf58
Branches
No related tags found
No related merge requests found
......@@ -316,7 +316,7 @@ class Monitor:
def request_metadb(self,addr):
if self.db_server:
self.engine.send_request(self.dev,[self.db_server,],'getKeysValues',{'device':addr})
self.engine.send_request(self.dev,[self.db_server,],'get_keys_values',{'device':addr})
def request_attributes(self,addr):
self.engine.send_get_attributes(self.dev,[addr,])
......@@ -330,12 +330,12 @@ class Monitor:
return False
def is_reply_metadb(self,msg):
if msg.is_reply() and msg.action == 'getKeysValues' and msg.source == self.db_server:
if msg.is_reply() and msg.action == 'get_keys_values' and msg.source == self.db_server:
return True
return False
def is_update_metadb(self,msg):
if msg.is_notify() and msg.action == 'keysValuesChanged' and msg.source == self.db_server:
if msg.is_notify() and msg.action == 'keys_values_changed' and msg.source == self.db_server:
return True
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment