projects
/
zonemaker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cfd2f5f
)
make more intensive use of
author
Ralf Jung
<post@ralfj.de>
Sat, 21 Mar 2015 12:36:00 +0000
(13:36 +0100)
committer
Ralf Jung
<post@ralfj.de>
Sat, 21 Mar 2015 12:36:00 +0000
(13:36 +0100)
zone.py
patch
|
blob
|
history
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)