# Miscellaneous customization constants PASSWORD = "Spam" # Edit password. Change this! FAQCGI = 'faqw.py' # Relative URL of the FAQ cgi script FAQNAME = "Python FAQ" # Name of the FAQ OWNERNAME = "GvR" # Name for feedback OWNEREMAIL = "guido@python.org" # Email for feedback HOMEURL = "http://www.python.org" # Related home page HOMENAME = "Python home" # Name of related home page MAXHITS = 10 # Max #hits to be shown directly COOKIE_NAME = "Python-FAQ-Wizard" # Name used for Netscape cookie COOKIE_LIFETIME = 4 *7 * 24 * 3600 # Cookie expiration in seconds # RCS commands RCSBINDIR = "/depot/gnu/plat/bin/" # Directory containing RCS commands SH_RLOG = RCSBINDIR + "rlog %(file)s &1" SH_RLOG_H = RCSBINDIR + "rlog -h %(file)s &1" SH_RDIFF = RCSBINDIR + "rcsdiff -r%(prev)s -r%(rev)s %(file)s &1" SH_LOCK = RCSBINDIR + "rcs -l %(file)s &1" SH_CHECKIN = RCSBINDIR + "ci -u %(file)s <%(tfn)s 2>&1" # Titles for various output pages T_HOME = FAQNAME + " Wizard 0.2 (alpha)" T_ERROR = "Sorry, an error occurred" T_ROULETTE = FAQNAME + " Roulette" T_ALL = "The Whole " + FAQNAME T_INDEX = FAQNAME + " Index" T_SEARCH = FAQNAME + " Search Results" T_RECENT = "Recently Changed %s Entries" % FAQNAME T_SHOW = FAQNAME + " Entry" T_LOG = "RCS log for %s entry" % FAQNAME T_DIFF = "RCS diff for %s entry" % FAQNAME T_ADD = "How to add an entry to the " + FAQNAME T_DELETE = "How to delete an entry from the " + FAQNAME T_EDIT = FAQNAME + " Edit Wizard" T_REVIEW = T_EDIT + " - Review Changes" T_COMMITTED = T_EDIT + " - Changes Committed" T_COMMITFAILED = T_EDIT + " - Commit Failed" T_CANTCOMMIT = T_EDIT + " - Commit Rejected" T_HELP = T_EDIT + " - Help" # Titles of FAQ sections SECTION_TITLES = { 1: "General information and availability", 2: "Python in the real world", 3: "Building Python and Other Known Bugs", 4: "Programming in Python", 5: "Extending Python", 6: "Python's design", 7: "Using Python on non-UNIX platforms", } # Generic prologue and epilogue PROLOGUE = ''' %(title)s

%(title)s

''' EPILOGUE = '''
%(HOMENAME)s / %(FAQNAME)s Wizard / Feedback to %(OWNERNAME)s ''' # Home page HOME = """

(Case insensitive regular expressions.)
""" # Index formatting INDEX_SECTION = """


%(sec)d. %(title)s

""" INDEX_ENTRY = """\
  • %(title)s
    """ # Entry formatting ENTRY_FOOTER = """ Edit this entry / Log info """ ENTRY_LOGINFO = """ / Last changed on %(last_changed_date)s by %(last_changed_author)s """ # Search NO_HITS = """ No hits. """ ONE_HIT = """ Your search matched the following entry: """ FEW_HITS = """ Your search matched the following %(count)d entries: """ MANY_HITS = """ Your search matched more than %(MAXHITS)d entries. The %(count)d matching entries are presented here ordered by section: """ # RCS log and diff LOG = """ Click on a revision line to see the diff between that revision and the previous one. """ DIFFLINK = """\ %(line)s """ # Recently changed entries NO_RECENT = """
    No %(FAQNAME)s entries were changed in the last %(period)s. """ ONE_RECENT = """
    View entries changed in the last: The following %(FAQNAME)s entry was changed in the last %(period)s: """ SOME_RECENT = """
    View entries changed in the last: The following %(count)d %(FAQNAME)s entries were changed in the last %(period)s, most recently changed shown first: """ TAIL_RECENT = """
    View entries changed in the last: """ # Last changed banner on "all" (strftime format) LAST_CHANGED = "Last changed on %c %Z" # "Compat" command prologue (no tag) COMPAT = """

    The whole %(FAQNAME)s

    """ # Editing EDITHEAD = """ Click for Help """ REVIEWHEAD = EDITHEAD EDITFORM1 = """

    """ EDITFORM2 = """ Title:

    Log message (reason for the change):

    Please provide the following information for logging purposes:
    Name:
    Email:
    Password:
    Click this button to preview your changes. """ EDITFORM3 = """
    """ COMMIT = """ Click this button to commit your changes.
    """ NOCOMMIT = """ You can't commit your changes unless you enter a log message, your name, email addres, and the correct password in the form below.
    """ CANTCOMMIT_HEAD = """ Some required information is missing: Please use your browser's Back command to correct the form and commit again. """ VERSIONCONFLICT = """

    You edited version %(editversion)s but the current version is %(version)s.

    The two most common causes of this problem are:

    Click here to reload the entry and try again.

    """ CANTWRITE = """ Can't write file %(file)s (%(why)s). """ FILEHEADER = """\ Title: %(title)s Last-Changed-Date: %(date)s Last-Changed-Author: %(author)s Last-Changed-Email: %(email)s Last-Changed-Remote-Host: %(REMOTE_HOST)s Last-Changed-Remote-Address: %(REMOTE_ADDR)s """ LOGHEADER = """\ Last-Changed-Date: %(date)s Last-Changed-Author: %(author)s Last-Changed-Email: %(email)s Last-Changed-Remote-Host: %(REMOTE_HOST)s Last-Changed-Remote-Address: %(REMOTE_ADDR)s %(log)s """ COMMITTED = """ Your changes have been committed. """ COMMITFAILED = """ Exit status %(sts)04x. """ HELP = """ Using the %(FAQNAME)s Edit Wizard speaks mostly for itself. Here are some answers to questions you are likely to ask:


    I can review an entry but I can't commit it.

    The commit button only appears if the following conditions are met:


    What is the password?

    At the moment, only PSA members will be told the password. This is a good time to join the PSA! See the PSA home page.


    Can I use HTML in the FAQ entry?

    No, but if you include a URL or an email address in the text it will automatigally become an anchor of the right type. Also, *word* is made italic (but only for single alphabetic words).


    How do I delineate paragraphs?

    Use blank lines to separate paragraphs.


    How do I enter example text?

    Any line that begins with a space or tab is assumed to be part of literal text. Blocks of literal text delineated by blank lines are placed inside <PRE>...</PRE>. """