diff options
author | Rob Austein <sra@hactrn.net> | 2007-11-07 15:43:58 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-11-07 15:43:58 +0000 |
commit | 0e02c98a989c077ad5d3ce8e3ca3eee2da983ea0 (patch) | |
tree | 771e6a7d42d760164517704f4887911173e014f5 /scripts/rpki/left_right.py | |
parent | ab9c880096d9c14729cd375bf3255617ec33ed43 (diff) |
Server side of up-down issue mostly working now.
svn path=/scripts/rpki/https.py; revision=1268
Diffstat (limited to 'scripts/rpki/left_right.py')
-rw-r--r-- | scripts/rpki/left_right.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/rpki/left_right.py b/scripts/rpki/left_right.py index 181a1d13..af0282e2 100644 --- a/scripts/rpki/left_right.py +++ b/scripts/rpki/left_right.py @@ -510,7 +510,12 @@ class child_elt(data_elt): # May require refactoring, ignore the issue for now. # r_elt = r_msg.toXML() - rpki.relaxng.up_down.assertValid(r_elt) + try: + rpki.relaxng.up_down.assertValid(r_elt) + except: + print lxml.etree.tostring(r_elt, pretty_print = True, encoding = "UTF-8") + traceback.print_exc() + raise return rpki.cms.xml_sign(r_elt, bsc.private_key_id, bsc.signing_cert, encoding = "UTF-8") class repository_elt(data_elt): @@ -554,12 +559,12 @@ class repository_elt(data_elt): def publish(self, *things): """Placeholder for publication operation (not yet written).""" for thing in things: - print "Should publish %s to repository %s" % (thing, self) + print "Should publish %s to repository %s" % (repr(thing), repr(self)) def withdraw(self, *things): """Placeholder for publication withdrawal operation (not yet written).""" for thing in things: - print "Should withdraw %s from repository %s" % (thing, self) + print "Should withdraw %s from repository %s" % (repr(thing), repr(self)) class route_origin_elt(data_elt): """<route_origin/> element.""" |