From b6516c2f008de488b945f455b507f8134db4b47b Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Fri, 26 Jun 2009 16:59:38 +0200 Subject: [PATCH] webber: ./webber -v warns now about common mistakes --- webber.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webber.py b/webber.py index 98b1106..5cadaaf 100644 --- a/webber.py +++ b/webber.py @@ -108,10 +108,15 @@ class File(Holder): #print "txt:", s.rstrip().encode("iso-8859-1") txt.append(s) + # Warn about a bogus time entries if self.mtime < self.ctime: log('%s: modification time cannot be before creation time' % self.rel_path) self.ctime = self.mtime + # Warn about long titles / long linktitles + if len(self.linktitle) > 20: + log('%s: define a shorter "linktitle: xxx"') + self.contents = "".join(txt) @@ -501,7 +506,7 @@ def walk_tree(dirpath): direc.inheritFrom(cfg) if not rel_path: rel_path = "." - log("reading directory %s" % rel_path, level=4) + log("reading directory %s" % rel_path, level=5) for s in os.listdir(dirpath): full_path = os.path.join(dirpath, s) -- 2.39.2