[pytango] 42/98: `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:17:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to tag v9.2.0
in repository pytango.
commit 6d329504c9f1f6e5605fe1ba23f3a3a668cfd2d3
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 78a3ce8..cdf335a 100644
--- a/src/boost/python/databaseds/db_access/beacon.py
+++ b/src/boost/python/databaseds/db_access/beacon.py
@@ -851,7 +851,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