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
More bug fixes...
[sfa.git]
/
sfatables
/
runtime.py
diff --git
a/sfatables/runtime.py
b/sfatables/runtime.py
index
69dd665
..
f9263fb
100644
(file)
--- a/
sfatables/runtime.py
+++ b/
sfatables/runtime.py
@@
-50,7
+50,9
@@
class SFATablesRules:
childNode = self.create_xml_node(k, context_dict[k])
node.addChild(childNode)
else:
childNode = self.create_xml_node(k, context_dict[k])
node.addChild(childNode)
else:
- node.addContent(context_dict[k])
+ childNode = libxml2.newNode(k)
+ childNode.addContent(context_dict[k])
+ node.addChild(childNode)
return node
def add_request_context_to_rspec(self, doc):
return node
def add_request_context_to_rspec(self, doc):
@@
-86,7
+88,7
@@
class SFATablesRules:
def main():
incoming = SFATablesRules('INCOMING')
def main():
incoming = SFATablesRules('INCOMING')
- incoming.set_context({'sfa':{'user':{'hrn':'pl
e
.princeton.sapanb'}}})
+ incoming.set_context({'sfa':{'user':{'hrn':'pl
c
.princeton.sapanb'}}})
outgoing = SFATablesRules('OUTGOING')
print "%d rules loaded for INCOMING chain"%len(incoming.sorted_rule_list)
outgoing = SFATablesRules('OUTGOING')
print "%d rules loaded for INCOMING chain"%len(incoming.sorted_rule_list)