aboutsummaryrefslogtreecommitdiff
path: root/myrpki/myirbe.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2009-11-04 04:27:31 +0000
committerRob Austein <sra@hactrn.net>2009-11-04 04:27:31 +0000
commit6192e5fcba290e11e88597fa7b03dfcde28b89e2 (patch)
treeeb6ddb112f5a5185367a98e9619a9da4a461e73b /myrpki/myirbe.py
parent528e1bf712d82d8024c204a06c756cd577096b47 (diff)
Use batch-mode publication in rpkid. Fix FOREIGN KEY constraints.
svn path=/myrpki/myirbe.py; revision=2876
Diffstat (limited to 'myrpki/myirbe.py')
-rw-r--r--myrpki/myirbe.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/myrpki/myirbe.py b/myrpki/myirbe.py
index 6ab06a12..b7533046 100644
--- a/myrpki/myirbe.py
+++ b/myrpki/myirbe.py
@@ -516,6 +516,15 @@ for xmlfile in xmlfiles:
assert e is not None
e.text = bsc_req.get_Base64()
+ # Something weird going on here with lxml linked against recent
+ # versions of libxml2. Looks like modifying the tree above somehow
+ # produces validation errors, but it works fine if we convert it to
+ # a string and parse it again. I'm not seeing any problems with any
+ # of the other code that uses lxml to do validation, just this one
+ # place. Weird. Kludge around it for now.
+
+ tree = lxml.etree.fromstring(lxml.etree.tostring(tree))
+
try:
schema.myrpki.assertValid(tree)
except lxml.etree.DocumentInvalid: