diff options
author | Rob Austein <sra@hactrn.net> | 2015-10-20 18:58:48 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-10-20 18:58:48 +0000 |
commit | 8fb4de3c1267c58c34a880026dd7cc75b1b6f960 (patch) | |
tree | 4c0fae1f58d19dd8f4bf3bc9621332e63df070bc /rpki/gui/cacheview | |
parent | 517079e5dbf12b062dc12638fa9620fe9642bb70 (diff) |
Change <self/> (etc) to <tenant/> (etc). "self" always was a really
bad choice for something implemented in Python, holdover from an older
specification, but Django ORM's troubles with "self" as a keyword
argument were the last straw. Enough already. Backwards
compatability should be a straightforward data migration.
svn path=/branches/tk705/; revision=6134
Diffstat (limited to 'rpki/gui/cacheview')
-rw-r--r-- | rpki/gui/cacheview/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpki/gui/cacheview/util.py b/rpki/gui/cacheview/util.py index 21430091..7ab4837a 100644 --- a/rpki/gui/cacheview/util.py +++ b/rpki/gui/cacheview/util.py @@ -321,7 +321,7 @@ def fetch_published_objects(): q_msg = Element(rpki.left_right.tag_msg, nsmap = rpki.left_right.nsmap, type = "query", version = rpki.left_right.version) for h in handles: - SubElement(q_msg, rpki.left_right.tag_list_published_objects, action="list", self_handle=h, tag=h) + SubElement(q_msg, rpki.left_right.tag_list_published_objects, action="list", tenant_handle=h, tag=h) z = Zookeeper() r_msg = z.call_rpkid(q_msg) for r_pdu in r_msg: @@ -331,7 +331,7 @@ def fetch_published_objects(): if qs: # get the current validity state valid = qs[0].statuses.filter(status=object_accepted).exists() - uris[r_pdu.get("uri")] = (r_pdu.get("self_handle"), valid, False, None) + uris[r_pdu.get("uri")] = (r_pdu.get("tenant_handle"), valid, False, None) logger.debug('adding %s', r_pdu.get("uri")) else: # this object is not in the cache. it was either published |