From: Ralf Jung Date: Sat, 21 Mar 2015 12:36:00 +0000 (+0100) Subject: make more intensive use of X-Git-Url: https://git.ralfj.de/zonemaker.git/commitdiff_plain/4b221937f5e8ca0fd6bc8d3331529f3502615b38?ds=inline;hp=cfd2f5fc1e06dc0fa0894d2b49405cb424d335ff make more intensive use of --- diff --git a/zone.py b/zone.py index b0d055e..1e1251a 100644 --- a/zone.py +++ b/zone.py @@ -147,7 +147,7 @@ class RR: return self def __str__(self): - return column_widths((self.path, time(self.TTL), self.recordType, self.data), (32, 8, 8)) + return column_widths((self.path, time(self.TTL), self.recordType, self.data), (8*3, 8, 8)) ## Record types class A: @@ -369,5 +369,5 @@ class Zone: def write(self) -> None: print(";; {} zone file, generated by zonemaker on {}".format(self._name, datetime.datetime.now())) print("$ORIGIN {}".format(self._name)) - for rr in map(lambda rr: rr.relativize(self._name).mapTTL(self.getTTL), self.generate_rrs()): + for rr in map(lambda rr: rr.mapTTL(self.getTTL), self.generate_rrs()): print(rr)