|
9 | 9 | # Titles of FAQ sections |
10 | 10 |
|
11 | 11 | SECTION_TITLES = { |
| 12 | + # SectionNumber : SectionTitle; need at least one entry |
12 | 13 | 1: "General information and availability", |
13 | | - 2: "Python in the real world", |
14 | | - 3: "Building Python and Other Known Bugs", |
15 | | - 4: "Programming in Python", |
16 | | - 5: "Extending Python", |
17 | | - 6: "Python's design", |
18 | | - 7: "Using Python on non-UNIX platforms", |
19 | 14 | } |
20 | 15 |
|
21 | 16 | # Parameters you definitely want to change |
22 | 17 |
|
23 | | -PASSWORD = "Spam" # Editing password |
24 | | -FAQNAME = "Python FAQ" # Name of the FAQ |
| 18 | +SHORTNAME = "Generic" # FAQ name with "FAQ" omitted |
| 19 | +PASSWORD = "" # Password for editing |
25 | 20 | OWNERNAME = "GvR" # Name for feedback |
26 | 21 | OWNEREMAIL = "[email protected]" # Email for feedback |
27 | 22 | HOMEURL = "http://www.python.org" # Related home page |
28 | 23 | HOMENAME = "Python home" # Name of related home page |
29 | | -COOKIE_NAME = "Python-FAQ-Wizard" # Name used for Netscape cookie |
30 | 24 | RCSBINDIR = "/depot/gnu/plat/bin/" # Directory containing RCS commands |
31 | 25 | # (must end in a slash) |
32 | 26 |
|
33 | 27 | # Parameters you can normally leave alone |
34 | 28 |
|
35 | | -FAQCGI = 'faqw.py' # Relative URL of the FAQ cgi script |
36 | 29 | MAXHITS = 10 # Max #hits to be shown directly |
37 | 30 | COOKIE_LIFETIME = 28*24*3600 # Cookie expiration in seconds |
38 | 31 | # (28*24*3600 = 28 days = 4 weeks) |
39 | 32 |
|
| 33 | +# This parameter is normally overwritten with a dynamic value |
| 34 | + |
| 35 | +FAQCGI = 'faqw.py' # Relative URL of the FAQ cgi script |
| 36 | +import os, sys |
| 37 | +FAQCGI = os.path.basename(sys.argv[0]) or FAQCGI |
| 38 | +del os, sys |
| 39 | + |
| 40 | +# Load local customizations on top of the previous parameters |
| 41 | + |
| 42 | +try: |
| 43 | + from faqcust import * |
| 44 | +except ImporError: |
| 45 | + pass |
| 46 | + |
| 47 | +# Calculated parameter names |
| 48 | + |
| 49 | +COOKIE_NAME = SHORTNAME + "-FAQ-Wizard" # Name used for Netscape cookie |
| 50 | +FAQNAME = SHORTNAME + " FAQ" # Name of the FAQ |
| 51 | + |
40 | 52 | # Regular expression to recognize FAQ entry files: group(1) should be |
41 | 53 | # the section number, group(2) should be the question number. Both |
42 | 54 | # should be fixed width so simple-minded sorting yields the right |
|
0 commit comments