From a78a3c30dd88fe76dd1554b69e60438fd63ed9cd Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 23 May 1997 22:29:24 +0000 Subject: [PATCH] Implemented a simple Password scheme. Added a Help link to the FAQ Edit Wizard. --- Tools/faqwiz/faqmain.py | 82 ++++++++++++++++++++++++++--------------- 1 file changed, 53 insertions(+), 29 deletions(-) diff --git a/Tools/faqwiz/faqmain.py b/Tools/faqwiz/faqmain.py index a8e85bc9f2a..96c9dbc43a0 100644 --- a/Tools/faqwiz/faqmain.py +++ b/Tools/faqwiz/faqmain.py @@ -44,6 +44,8 @@ # NB for timing purposes, the imports are at the end of this file +PASSWORD = "Spam" + NAMEPAT = "faq??.???.htp" NAMEREG = "^faq\([0-9][0-9]\)\.\([0-9][0-9][0-9]\)\.htp$" @@ -75,7 +77,7 @@ def main(self): KEYS = ['req', 'query', 'name', 'text', 'commit', 'title', 'author', 'email', 'log', 'section', 'number', 'add', - 'version', 'edit'] + 'version', 'edit', 'password'] def __getattr__(self, key): if key not in self.KEYS: @@ -94,7 +96,7 @@ def __getattr__(self, key): return value def do_frontpage(self): - self.prologue("Python FAQ (alpha) Front Page") + self.prologue("Python FAQ (beta test) Front Page") print """