projects
/
zonemaker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GitHub wording
[zonemaker.git]
/
zone.py
diff --git
a/zone.py
b/zone.py
index b0d055e026bfc28e3af7761bf249f9b85a79f507..1e1251a5fcd2759a982713b68f908401001a962b 100644
(file)
--- a/
zone.py
+++ b/
zone.py
@@
-147,7
+147,7
@@
class RR:
return self
def __str__(self):
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:
## Record types
class A:
@@
-369,5
+369,5
@@
class Zone:
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))
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)
print(rr)