chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2324082
)
make-secnet-sites: Set .type in the `level' base class
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 18 Oct 2019 20:32:47 +0000
(21:32 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 18:16:16 +0000
(19:16 +0100)
We have one instance of directly this, the root node. If it has an
error, the lack of the .type would cause a stack trace while trying to
print the error message.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
make-secnet-sites
patch
|
blob
|
history
diff --git
a/make-secnet-sites
b/make-secnet-sites
index f32267824cbd954177416cb9bcfac3c9582e73f6..65baa11c0b98b3d44d2e5d6f8fb9859cf8f86fda 100755
(executable)
--- a/
make-secnet-sites
+++ b/
make-secnet-sites
@@
-257,6
+257,7
@@
class level:
allow_properties={}
require_properties={}
def __init__(self,w):
+ self.type=w[0]
self.name=w[1]
self.properties={}
self.children={}