From 74427e51d702a511849267c6a179ef4d93838760 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 21 May 1997 23:43:39 +0000 Subject: [PATCH] Separate prologue/epilogue functions. Get the current version on edit and reject commits based on an old version. --- Tools/faqwiz/faqmain.py | 114 ++++++++++++++++++++++++---------------- 1 file changed, 69 insertions(+), 45 deletions(-) diff --git a/Tools/faqwiz/faqmain.py b/Tools/faqwiz/faqmain.py index 1e2a1dd197e..c3d9c7d3fc6 100644 --- a/Tools/faqwiz/faqmain.py +++ b/Tools/faqwiz/faqmain.py @@ -4,6 +4,8 @@ XXX TO DO +- generic error handler +- should have files containing section headers - customize rcs command pathnames - recognize urls and email addresses and turn them into tags - use cookies to keep Name/email the same @@ -12,10 +14,8 @@ - create new sections - rearrange entries - delete entries -- log changes - send email on changes - optional staging of entries until reviewed? -- review revision log and older versions - freeze entries - username/password for editors - Change references to other Q's and whole sections @@ -25,8 +25,6 @@ """ -import cgi, string, os, sys - NAMEPAT = "faq??.???.htp" NAMEREG = "^faq\([0-9][0-9]\)\.\([0-9][0-9][0-9]\)\.htp$" @@ -44,9 +42,11 @@ def main(self): print "Unrecognized request type", req else: method() + self.epilogue() KEYS = ['req', 'query', 'name', 'text', 'commit', 'title', - 'author', 'email', 'log', 'section', 'number', 'add'] + 'author', 'email', 'log', 'section', 'number', 'add', + 'version'] def __getattr__(self, key): if key not in self.KEYS: @@ -59,9 +59,8 @@ def __getattr__(self, key): return '' def do_frontpage(self): + self.prologue("Python FAQ (alpha) Front Page") print """ - Python FAQ (alpha 1) -

Python FAQ Front Page