Commit 650ebb92 authored by Michał Glinka's avatar Michał Glinka

Change device and defined order in simpleparamsreader

parent 2821ef30
......@@ -29,8 +29,8 @@ class SimpleParamsReader:
def read_db_param_names(self):
ipk = lxml.etree.parse(self.ipk_path)
raw_names = []
raw_names.extend(ipk.xpath("/s:params/s:defined/s:param/@name", namespaces={"s": IPK_NAMESPACE}))
raw_names.extend(ipk.xpath("/s:params/s:device//s:param/@name", namespaces={"s": IPK_NAMESPACE}))
raw_names.extend(ipk.xpath("/s:params/s:defined/s:param/@name", namespaces={"s": IPK_NAMESPACE}))
ascii_names = [ unicode_to_param_name(x) for x in raw_names ]
return ascii_names
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment