diff options
author | Guido van Rossum <guido@python.org> | 1997-05-23 00:50:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-23 00:50:01 (GMT) |
commit | c6447527aaea20527a57c0953ff4078418ff7177 (patch) | |
tree | 8af620f34b3a6abbe2f03489fc9e8fcbc006ed5a /Tools | |
parent | 296b4751e1dc6b40504e45e795d52594bee720d2 (diff) | |
download | cpython-c6447527aaea20527a57c0953ff4078418ff7177.zip cpython-c6447527aaea20527a57c0953ff4078418ff7177.tar.gz cpython-c6447527aaea20527a57c0953ff4078418ff7177.tar.bz2 |
Minor change: add prologue() calls to do_info and do_rlog; in
do_recent, don't display entries without a last-changed-date.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/faqwiz/faqmain.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Tools/faqwiz/faqmain.py b/Tools/faqwiz/faqmain.py index bb89cca..6e00acf 100644 --- a/Tools/faqwiz/faqmain.py +++ b/Tools/faqwiz/faqmain.py @@ -21,10 +21,9 @@ XXX TO DO - freeze entries - username/password for editors - Change references to other Q's and whole sections -- Browse should display menu of 7 sections & let you pick - (or frontpage should have the option to browse a section or all) - support adding annotations, too - make it more generic (so you can create your own FAQ) +- more OO structure, e.g. add a class representing one FAQ entry """ @@ -198,7 +197,7 @@ class FAQServer: n = 0 for (mtime, name) in list: headers, text = self.read(name) - if headers: + if headers and headers.has_key('last-changed-date'): self.show(name, headers['title'], text) n = n+1 if not n: @@ -356,6 +355,7 @@ class FAQServer: if not headers: self.error("Invalid file name", name) return + self.prologue("Info for %s" % name) print '<PRE>' sys.stdout.flush() os.system("/depot/gnu/plat/bin/rlog -r %s </dev/null 2>&1" % self.name) @@ -368,6 +368,7 @@ class FAQServer: if not headers: self.error("Invalid file name", name) return + self.prologue("RCS log for %s" % name) print '<PRE>' sys.stdout.flush() os.system("/depot/gnu/plat/bin/rlog %s </dev/null 2>&1" % self.name) |