diff options
author | Michael Elkins <melkins@tislabs.com> | 2011-10-07 16:20:41 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2011-10-07 16:20:41 +0000 |
commit | b1594b7053eccc5b1d09a67c1bd90def14ca0515 (patch) | |
tree | cab28fc89e3a99511248ef09040dca50c65073b9 /rpkid | |
parent | 83c7046ab98495f6fadcca28d60429f92788a010 (diff) |
qualify csv_writer calls with rpki.myrpki.
svn path=/rpkid/rpki/gui/app/glue.py; revision=4024
Diffstat (limited to 'rpkid')
-rw-r--r-- | rpkid/rpki/gui/app/glue.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpkid/rpki/gui/app/glue.py b/rpkid/rpki/gui/app/glue.py index 20c8eb1a..c5990845 100644 --- a/rpkid/rpki/gui/app/glue.py +++ b/rpkid/rpki/gui/app/glue.py @@ -48,21 +48,21 @@ read_identity = lambda h: read_file_from_handle(h, 'entitydb/identity.xml')[0] def output_asns(path, handle): '''Write out csv file containing asns delegated to my children.''' qs = models.Asn.objects.filter(lo=F('hi'), allocated__in=handle.children.all()) - w = csv_writer(path) + w = rpki.myrpki.csv_writer(path) w.writerows([asn.allocated.handle, asn.lo] for asn in qs) w.close() def output_prefixes(path, handle): '''Write out csv file containing prefixes delegated to my children.''' qs = models.AddressRange.objects.filter(allocated__in=handle.children.all()) - w = csv_writer(path) + w = rpki.myrpki.csv_writer(path) w.writerows([p.allocated.handle, p.as_resource_range()] for p in qs) w.close() def output_roas(path, handle): '''Write out csv file containing my roas.''' qs = models.RoaRequest.objects.filter(roa__in=handle.roas.all()) - w = csv_writer(path) + w = rpki.myrpki.csv_writer(path) w.writerows([req.as_roa_prefix(), req.roa.asn, '%s-group-%d' % (handle.handle, req.roa.pk)] for req in qs) w.close() |