From: Guido van Rossum Date: Wed, 21 May 1997 23:43:39 +0000 (+0000) Subject: Separate prologue/epilogue functions. X-Git-Tag: v1.5a3~497 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=74427e51d702a511849267c6a179ef4d93838760;p=thirdparty%2FPython%2Fcpython.git Separate prologue/epilogue functions. Get the current version on edit and reject commits based on an old version. --- diff --git a/Tools/faqwiz/faqmain.py b/Tools/faqwiz/faqmain.py index 1e2a1dd197ee..c3d9c7d3fc6a 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 @@ XXX TO DO - 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 @@ XXX TO DO """ -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 @@ class FAQServer: 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 @@ class FAQServer: return '' def do_frontpage(self): + self.prologue("Python FAQ (alpha) Front Page") print """ - Python FAQ (alpha 1) -

Python FAQ Front Page