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:
def write(self) -> None:
print(";; {} zone file, generated by zonemaker <https://www.ralfj.de/projects/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)