git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shebangs need to point at python2
[sfa.git]
/
sfatables
/
xmlextension.py
diff --git
a/sfatables/xmlextension.py
b/sfatables/xmlextension.py
index
4fc1ab5
..
f90e0fb
100644
(file)
--- a/
sfatables/xmlextension.py
+++ b/
sfatables/xmlextension.py
@@
-5,18
+5,17
@@
# - The parameters that the processor needs to evaluate the context
import libxml2
# - The parameters that the processor needs to evaluate the context
import libxml2
-from sfatables.globals import *
class Xmlextension:
class Xmlextension:
- def __init__(self, dir, component_name):
+ def __init__(self, file_path):
+
self.context = ""
self.processor = ""
self.operand = "VALUE"
self.arguments = []
self.terminal = 0
self.context = ""
self.processor = ""
self.operand = "VALUE"
self.arguments = []
self.terminal = 0
- filename = dir+"/"+component_name+".xml"
- self.xmldoc = libxml2.parseFile(filename)
+ self.xmldoc = libxml2.parseFile(file_path)
# TODO: Check xmldoc against a schema
p = self.xmldoc.xpathNewContext()
# TODO: Check xmldoc against a schema
p = self.xmldoc.xpathNewContext()