Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2305231a
Commit
2305231a
authored
May 26, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a local customization feature: load some parameters from faqcust.
parent
46a160f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
Tools/faqwiz/faqconf.py
Tools/faqwiz/faqconf.py
+22
-10
No files found.
Tools/faqwiz/faqconf.py
View file @
2305231a
...
@@ -9,34 +9,46 @@ of parameters below it.
...
@@ -9,34 +9,46 @@ of parameters below it.
# Titles of FAQ sections
# Titles of FAQ sections
SECTION_TITLES
=
{
SECTION_TITLES
=
{
# SectionNumber : SectionTitle; need at least one entry
1
:
"General information and availability"
,
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"
,
}
}
# Parameters you definitely want to change
# Parameters you definitely want to change
PASSWORD
=
"Spam"
# Editing passwor
d
SHORTNAME
=
"Generic"
# FAQ name with "FAQ" omitte
d
FAQNAME
=
"Python FAQ"
# Name of the FAQ
PASSWORD
=
""
# Password for editing
OWNERNAME
=
"GvR"
# Name for feedback
OWNERNAME
=
"GvR"
# Name for feedback
OWNEREMAIL
=
"guido@python.org"
# Email for feedback
OWNEREMAIL
=
"guido@python.org"
# Email for feedback
HOMEURL
=
"http://www.python.org"
# Related home page
HOMEURL
=
"http://www.python.org"
# Related home page
HOMENAME
=
"Python home"
# Name of related home page
HOMENAME
=
"Python home"
# Name of related home page
COOKIE_NAME
=
"Python-FAQ-Wizard"
# Name used for Netscape cookie
RCSBINDIR
=
"/depot/gnu/plat/bin/"
# Directory containing RCS commands
RCSBINDIR
=
"/depot/gnu/plat/bin/"
# Directory containing RCS commands
# (must end in a slash)
# (must end in a slash)
# Parameters you can normally leave alone
# Parameters you can normally leave alone
FAQCGI
=
'faqw.py'
# Relative URL of the FAQ cgi script
MAXHITS
=
10
# Max #hits to be shown directly
MAXHITS
=
10
# Max #hits to be shown directly
COOKIE_LIFETIME
=
28
*
24
*
3600
# Cookie expiration in seconds
COOKIE_LIFETIME
=
28
*
24
*
3600
# Cookie expiration in seconds
# (28*24*3600 = 28 days = 4 weeks)
# (28*24*3600 = 28 days = 4 weeks)
# This parameter is normally overwritten with a dynamic value
FAQCGI
=
'faqw.py'
# Relative URL of the FAQ cgi script
import
os
,
sys
FAQCGI
=
os
.
path
.
basename
(
sys
.
argv
[
0
])
or
FAQCGI
del
os
,
sys
# Load local customizations on top of the previous parameters
try
:
from
faqcust
import
*
except
ImporError
:
pass
# Calculated parameter names
COOKIE_NAME
=
SHORTNAME
+
"-FAQ-Wizard"
# Name used for Netscape cookie
FAQNAME
=
SHORTNAME
+
" FAQ"
# Name of the FAQ
# Regular expression to recognize FAQ entry files: group(1) should be
# Regular expression to recognize FAQ entry files: group(1) should be
# the section number, group(2) should be the question number. Both
# the section number, group(2) should be the question number. Both
# should be fixed width so simple-minded sorting yields the right
# should be fixed width so simple-minded sorting yields the right
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment