[pytango] 448/483: Changed get_db plugin method to pass personal_name as argument

Sandor Bodo-Merle sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:15:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

sbodomerle-guest pushed a commit to annotated tag bliss_8.10
in repository pytango.

commit 3300edb6e034809dfd23346fd0bb16e5755c1428
Author: Sébastien Petitdemange <sebastien.petitdemange at esrf.fr>
Date:   Tue Mar 17 18:01:10 2015 +0100

    Changed get_db plugin method to pass personal_name as argument
---
 src/boost/python/databaseds/database.py          | 2 +-
 src/boost/python/databaseds/db_access/sqlite3.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/boost/python/databaseds/database.py b/src/boost/python/databaseds/database.py
index 14b1ed2..a663e64 100644
--- a/src/boost/python/databaseds/database.py
+++ b/src/boost/python/databaseds/database.py
@@ -194,7 +194,7 @@ class DataBase (PyTango.Device_4Impl):
         #----- PROTECTED REGION ID(DataBase.init_device) ENABLED START -----#
         m = __import__('db_access.%s' % (options.db_access),None,None,
                        'db_access.%s' % (options.db_access))
-        self.db = m.get_db()
+        self.db = m.get_db(personal_name = options.argv[1])
         try:
             global WILDCARD_REPLACEMENT
             WILDCARD_REPLACEMENT = m.get_wildcard_replacement()
diff --git a/src/boost/python/databaseds/db_access/sqlite3.py b/src/boost/python/databaseds/db_access/sqlite3.py
index f637355..f31345b 100644
--- a/src/boost/python/databaseds/db_access/sqlite3.py
+++ b/src/boost/python/databaseds/db_access/sqlite3.py
@@ -1568,7 +1568,7 @@ def main():
     db.add_device("MyServer/my1", ("a/b/c", ("a", "b", "c")), "MyClass")
     db.close_db()
 
-def get_db():
+def get_db(**keys):
     return Executor.submit(sqlite3).result()
 
 if __name__ == "__main__":

-- 
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