summaryrefslogtreecommitdiff
path: root/scripts/PYTHON_SOFTWARE/test/helpers/setup_xml.py
diff options
context:
space:
mode:
authorManel Caro <mcaro@iseebcn.com>2019-03-09 21:29:27 +0100
committerManel Caro <mcaro@iseebcn.com>2019-03-09 21:29:27 +0100
commite4366bb1f2dc3a43a1289f6f76967f1005278954 (patch)
tree4f07744ecfb6c6a60e29e35ca17d93b52f8b5d45 /scripts/PYTHON_SOFTWARE/test/helpers/setup_xml.py
parent9332c933fc05f42882640c9a4e35fab09854af84 (diff)
downloadboard-e4366bb1f2dc3a43a1289f6f76967f1005278954.zip
board-e4366bb1f2dc3a43a1289f6f76967f1005278954.tar.gz
board-e4366bb1f2dc3a43a1289f6f76967f1005278954.tar.bz2
Remove incorrect copy PYTHON_SOFTWARE folder inside scripts directory
Diffstat (limited to 'scripts/PYTHON_SOFTWARE/test/helpers/setup_xml.py')
-rw-r--r--scripts/PYTHON_SOFTWARE/test/helpers/setup_xml.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/scripts/PYTHON_SOFTWARE/test/helpers/setup_xml.py b/scripts/PYTHON_SOFTWARE/test/helpers/setup_xml.py
deleted file mode 100644
index 3fd9fd5..0000000
--- a/scripts/PYTHON_SOFTWARE/test/helpers/setup_xml.py
+++ /dev/null
@@ -1,40 +0,0 @@
-import xml.etree.ElementTree as XMLParser
-
-class XMLSetup (object):
- """aaaaa"""
- __tree = None # Parser
- __dbType = None # database connection required: PgSQLConnection
- __dbConnectionRaw = None # Connection string in raw
- __dbConnectionStr = None # Connection string to use in sql object connection
-
- def __init__(self, filename):
- """aaaaa"""
- self.__tree = XMLParser.parse(filename)
-
- def __del__(self):
- """aaaaa"""
- pass
-
- def getdbConnectionStr (self):
- """aaaaa"""
- if self.__dbConnectionRaw is not None:
- return self.__dbConnectionRaw
-
- for element in self.__tree.iter('db'):
- self.__dbConnectionRaw = element.attrib
- self.__dbType = self.__dbConnectionRaw['type']
- if self.__dbType == "PgSQLConnection":
- self.__dbConnectionStr = self.getPostgresConnectionStr()
- return self.__dbConnectionStr
-
- return None
-
- def getPostgresConnectionStr (self):
- """aaaaa"""
- str = self.__dbConnectionRaw
- del str['type']
- return str
-
- def getMysqlConnectionStr (self):
- """aaaaa"""
- pass \ No newline at end of file