diff options
author | Rob Austein <sra@hactrn.net> | 2008-05-30 00:00:33 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-05-30 00:00:33 +0000 |
commit | bc45f0e7f7198132813379de7225c3d047a870e2 (patch) | |
tree | d1b29317a88024ede95a774cc36ca1435e8f340c /rpkid | |
parent | 3e218c10cd69b7a0fe47a88f908dcec2b287a57d (diff) |
Checkpoint
svn path=/rpkid/rpki/left_right.py; revision=1830
Diffstat (limited to 'rpkid')
-rw-r--r-- | rpkid/rpki/left_right.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/rpkid/rpki/left_right.py b/rpkid/rpki/left_right.py index b0ccb9f6..7fb12998 100644 --- a/rpkid/rpki/left_right.py +++ b/rpkid/rpki/left_right.py @@ -688,6 +688,8 @@ class repository_elt(data_elt): bpki_https_cert = None bpki_https_glue = None + use_pubd = False + def parents(self): """Fetch all parent objects that link to this repository object.""" return parent_elt.sql_fetch_where(self.gctx, "repository_id = %s", (self.repository_id,)) @@ -757,13 +759,19 @@ class repository_elt(data_elt): """Placeholder for publication operation. [TEMPORARY]""" rpki.log.trace() rpki.log.info("Publishing %s as %s" % (repr(obj), repr(uri))) - self.object_write(self.gctx.publication_kludge_base, uri, obj) + if self.use_pubd: + raise rpki.exceptions.NotImplementedYet + else: + self.object_write(self.gctx.publication_kludge_base, uri, obj) def withdraw(self, obj, uri): """Placeholder for publication withdrawal operation. [TEMPORARY]""" rpki.log.trace() rpki.log.info("Withdrawing %s from at %s" % (repr(obj), repr(uri))) - self.object_delete(self.gctx.publication_kludge_base, uri) + if self.use_pubd: + raise rpki.exceptions.NotImplementedYet + else: + self.object_delete(self.gctx.publication_kludge_base, uri) class route_origin_elt(data_elt): """<route_origin/> element.""" |