[pytango] 04/122: `device_name` passed to `put_device_property` can be in camel case, although we store device names in lower case; the same code might be necessary in other places? needs review
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:18:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to tag v9.2.1
in repository pytango.
commit 349264af96be320ca20a00c1028159901cfc141b
Author: blissadm <ohlsson at esrf.fr>
Date: Tue May 31 11:27:50 2016 +0200
`device_name` passed to `put_device_property` can be in camel case,
although we store device names in lower case; the same code might be
necessary in other places? needs review
---
src/boost/python/databaseds/db_access/beacon.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/boost/python/databaseds/db_access/beacon.py b/src/boost/python/databaseds/db_access/beacon.py
index fbd6b40..d7505b5 100644
--- a/src/boost/python/databaseds/db_access/beacon.py
+++ b/src/boost/python/databaseds/db_access/beacon.py
@@ -836,7 +836,7 @@ class beacon(object):
@_info
def put_device_property(self, device_name, nb_properties, attr_prop_list):
- device_node = self._tango_name_2_node.get(device_name)
+ device_node = self._tango_name_2_node.get(device_name.lower())
old_properties = device_node.get('properties')
if isinstance(old_properties,str): #reference
properties_key = old_properties.split('/')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list