[pytango] 22/122: beacon: force personal name to be lower
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:18:14 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 4bc142c687855e14794c86206231341801cb6de7
Author: Sébastien Petitdemange <sebastien.petitdemange at esrf.fr>
Date: Fri Jul 29 18:07:37 2016 +0200
beacon: force personal name to be lower
---
src/boost/python/databaseds/db_access/beacon.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/boost/python/databaseds/db_access/beacon.py b/src/boost/python/databaseds/db_access/beacon.py
index d79982a..24a73dd 100644
--- a/src/boost/python/databaseds/db_access/beacon.py
+++ b/src/boost/python/databaseds/db_access/beacon.py
@@ -145,11 +145,14 @@ class beacon(object):
device_node = self._tango_name_2_node.get(tango_name)
if device_node is not None: # There is a problem?
return
-
+ server_exe_name,personal_name = server_name.split('/')
+ personal_name = personal_name.lower()
+ server_name = '%s/%s' % (server_exe_name,personal_name)
server_node = self._personal_2_node.get(server_name)
if server_node is None:
server_node = static.Node(self._config,filename = 'tango/%s.yml' % server_name.replace('/','_'))
- server_node['server'],server_node['personal_name'] = server_name.split('/')
+ server_node['server'] = server_exe_name
+ server_node['personal_name'] = personal_name
self._personal_2_node[server_name] = server_node
self._tango_name_2_node['dserver/%s' % server_name.lower()] = server_node
--
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