diff options
author | Rob Austein <sra@hactrn.net> | 2007-10-19 23:00:42 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-10-19 23:00:42 +0000 |
commit | cf6832cfc5f77c82a06e8903352caeabc069c914 (patch) | |
tree | 36c2fc0139aea570e5b8dad0206e9856e6ba5dd7 /scripts/rpki/left_right.py | |
parent | bc9393cd00b756b13ca166116e3b5995cf668f7c (diff) |
Checkpoint
svn path=/scripts/rpki/left_right.py; revision=1180
Diffstat (limited to 'scripts/rpki/left_right.py')
-rw-r--r-- | scripts/rpki/left_right.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/rpki/left_right.py b/scripts/rpki/left_right.py index d39c2e41..820f506e 100644 --- a/scripts/rpki/left_right.py +++ b/scripts/rpki/left_right.py @@ -260,7 +260,7 @@ class self_elt(data_elt): for parent in parent_elt.sql_fetch_where(gctx, "self_id = %s" % self.self_id): r_pdu = rpki.up_down.list_pdu(gctx, parent) ca_map = dict((ca.parent_resource_class, ca) - for ca in rpki.sql.ca_obj.sql_fetch_where(gctx, "parent_id = %s", parent.parent_id)) + for ca in rpki.sql.ca_obj.sql_fetch_where(gctx, "parent_id = %s" % parent.parent_id)) for rc in r_pdu.payload: if rc.class_name in ca_map: ca = ca_map[rc.class_name] @@ -517,6 +517,16 @@ class repository_elt(data_elt): self.make_b64elt(elt, "https_ta", self.https_ta.get_DER()) return 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) + + 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) + class route_origin_elt(data_elt): """<route_origin/> element.""" |