|
15 | 15 |
|
16 | 16 | # Parameters you definitely want to change |
17 | 17 |
|
18 | | -SHORTNAME = "Generic" # FAQ name with "FAQ" omitted |
19 | | -PASSWORD = "" # Password for editing |
20 | | -OWNERNAME = "FAQ owner" # Name for feedback |
21 | | -OWNEREMAIL = "[email protected]" # Email for feedback |
22 | | -HOMEURL = "http://www.python.org" # Related home page |
23 | | -HOMENAME = "Python home" # Name of related home page |
24 | | -RCSBINDIR = "/usr/local/bin/" # Directory containing RCS commands |
25 | | - # (must end in a slash) |
| 18 | +SHORTNAME = "Generic" # FAQ name with "FAQ" omitted |
| 19 | +PASSWORD = "" # Password for editing |
| 20 | +OWNERNAME = "FAQ owner" # Name for feedback |
| 21 | +OWNEREMAIL = "[email protected]" # Email for feedback |
| 22 | +HOMEURL = "http://www.python.org" # Related home page |
| 23 | +HOMENAME = "Python home" # Name of related home page |
| 24 | +RCSBINDIR = "/usr/local/bin/" # Directory containing RCS commands |
| 25 | + # (must end in a slash) |
26 | 26 |
|
27 | 27 | # Parameters you can normally leave alone |
28 | 28 |
|
29 | | -MAXHITS = 10 # Max #hits to be shown directly |
30 | | -COOKIE_LIFETIME = 28*24*3600 # Cookie expiration in seconds |
31 | | - # (28*24*3600 = 28 days = 4 weeks) |
| 29 | +MAXHITS = 10 # Max #hits to be shown directly |
| 30 | +COOKIE_LIFETIME = 28*24*3600 # Cookie expiration in seconds |
| 31 | + # (28*24*3600 = 28 days = 4 weeks) |
32 | 32 | PROCESS_PREFORMAT = 1 # toggle whether preformatted text |
33 | 33 | # will replace urls and emails with |
34 | 34 | # HTML links |
35 | 35 |
|
36 | 36 | # Markers appended to title to indicate recently change |
37 | 37 | # (may contain HTML, e.g. <IMG>); and corresponding |
38 | 38 |
|
39 | | -MARK_VERY_RECENT = " **" # Changed very recently |
40 | | -MARK_RECENT = " *" # Changed recently |
41 | | -DT_VERY_RECENT = 24*3600 # 24 hours |
42 | | -DT_RECENT = 7*24*3600 # 7 days |
| 39 | +MARK_VERY_RECENT = " **" # Changed very recently |
| 40 | +MARK_RECENT = " *" # Changed recently |
| 41 | +DT_VERY_RECENT = 24*3600 # 24 hours |
| 42 | +DT_RECENT = 7*24*3600 # 7 days |
43 | 43 |
|
44 | 44 | EXPLAIN_MARKS = """ |
45 | 45 | <P>(Entries marked with ** were changed within the last 24 hours; |
|
49 | 49 |
|
50 | 50 | # Version -- don't change unless you edit faqwiz.py |
51 | 51 |
|
52 | | -WIZVERSION = "1.0.4" # FAQ Wizard version |
| 52 | +WIZVERSION = "1.0.4" # FAQ Wizard version |
53 | 53 |
|
54 | 54 | import os, sys |
55 | 55 | if os.name in ['nt',]: |
56 | 56 | # On NT we'll probably be running python from a batch file, |
57 | 57 | # so sys.argv[0] is not helpful |
58 | | - FAQCGI = 'faq.bat' # Relative URL of the FAQ cgi script |
| 58 | + FAQCGI = 'faq.bat' # Relative URL of the FAQ cgi script |
59 | 59 | # LOGNAME is not typically set on NT |
60 | 60 | os.environ[ 'LOGNAME' ] = "FAQWizard" |
61 | 61 | else: |
62 | 62 | # This parameter is normally overwritten with a dynamic value |
63 | | - FAQCGI = 'faqw.py' # Relative URL of the FAQ cgi script |
| 63 | + FAQCGI = 'faqw.py' # Relative URL of the FAQ cgi script |
64 | 64 | FAQCGI = os.path.basename(sys.argv[0]) or FAQCGI |
65 | 65 | del os, sys |
66 | 66 |
|
|
84 | 84 |
|
85 | 85 | # Calculated parameter names |
86 | 86 |
|
87 | | -COOKIE_NAME = SHORTNAME + "-FAQ-Wizard" # Name used for Netscape cookie |
88 | | -FAQNAME = SHORTNAME + " FAQ" # Name of the FAQ |
| 87 | +COOKIE_NAME = SHORTNAME + "-FAQ-Wizard" # Name used for Netscape cookie |
| 88 | +FAQNAME = SHORTNAME + " FAQ" # Name of the FAQ |
89 | 89 |
|
90 | 90 | # ---------------------------------------------------------------------- |
91 | 91 |
|
|
175 | 175 | <INPUT TYPE=submit VALUE="Search"><BR> |
176 | 176 | <INPUT TYPE=radio NAME=querytype VALUE=simple CHECKED> |
177 | 177 | Simple string |
178 | | - / |
| 178 | + / |
179 | 179 | <INPUT TYPE=radio NAME=querytype VALUE=regex> |
180 | 180 | Regular expression |
181 | | - /<BR> |
| 181 | + /<BR> |
182 | 182 | <INPUT TYPE=radio NAME=querytype VALUE=anykeywords> |
183 | 183 | Keywords (any) |
184 | | - / |
| 184 | + / |
185 | 185 | <INPUT TYPE=radio NAME=querytype VALUE=allkeywords> |
186 | 186 | Keywords (all) |
187 | | - <BR> |
| 187 | + <BR> |
188 | 188 | <INPUT TYPE=radio NAME=casefold VALUE=yes CHECKED> |
189 | 189 | Fold case |
190 | | - / |
| 190 | + / |
191 | 191 | <INPUT TYPE=radio NAME=casefold VALUE=no> |
192 | 192 | Case sensitive |
193 | | - <BR> |
| 193 | + <BR> |
194 | 194 | <INPUT TYPE=hidden NAME=req VALUE=search> |
195 | 195 | </FORM> |
196 | 196 |
|
|
362 | 362 | Please provide the following information for logging purposes: |
363 | 363 | <TABLE FRAME=none COLS=2> |
364 | 364 | <TR> |
365 | | - <TD>Name: |
366 | | - <TD><INPUT TYPE=text SIZE=40 NAME=author VALUE="%(author)s"> |
| 365 | + <TD>Name: |
| 366 | + <TD><INPUT TYPE=text SIZE=40 NAME=author VALUE="%(author)s"> |
367 | 367 | <TR> |
368 | | - <TD>Email: |
369 | | - <TD><INPUT TYPE=text SIZE=40 NAME=email VALUE="%(email)s"> |
| 368 | + <TD>Email: |
| 369 | + <TD><INPUT TYPE=text SIZE=40 NAME=email VALUE="%(email)s"> |
370 | 370 | <TR> |
371 | | - <TD>Password: |
372 | | - <TD><INPUT TYPE=password SIZE=20 NAME=password VALUE="%(password)s"> |
| 371 | + <TD>Password: |
| 372 | + <TD><INPUT TYPE=password SIZE=20 NAME=password VALUE="%(password)s"> |
373 | 373 | </TABLE> |
374 | 374 |
|
375 | 375 | <INPUT TYPE=submit NAME=review VALUE="Preview Edit"> |
|
0 commit comments