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
Keep xml files valid :-/
[sfa.git]
/
sfatables
/
xmlrule.py
diff --git
a/sfatables/xmlrule.py
b/sfatables/xmlrule.py
index
4714185
..
1a31711
100644
(file)
--- a/
sfatables/xmlrule.py
+++ b/
sfatables/xmlrule.py
@@
-57,7
+57,7
@@
class XMLRule:
def add_rule_context_to_rspec(self, doc):
p = doc.xpathNewContext()
def add_rule_context_to_rspec(self, doc):
p = doc.xpathNewContext()
- context = p.xpathEval("//
rs
pec")
+ context = p.xpathEval("//
RS
pec")
if (not context):
raise Exception('Request is not an rspec')
else:
if (not context):
raise Exception('Request is not an rspec')
else:
@@
-77,8
+77,6
@@
class XMLRule:
return doc
def apply_interpreted(self, rspec):
return doc
def apply_interpreted(self, rspec):
- import pdb
- pdb.set_trace()
rspec = self.add_rule_context_to_rspec(rspec)
# Interpreted
#
rspec = self.add_rule_context_to_rspec(rspec)
# Interpreted
#
@@
-115,8
+113,6
@@
class XMLRule:
self.processors[type] = processor[0].content
self.arguments[type] = p.xpathEval('//rule//argument[value!=""]')
self.processors[type] = processor[0].content
self.arguments[type] = p.xpathEval('//rule//argument[value!=""]')
- import pdb
- pdb.set_trace()
p.xpathFreeContext()
p.xpathFreeContext()