Commit 99489705 authored by Ken Manheimer's avatar Ken Manheimer

Nearly gratuitous cosmetic changes to resync files that were corrupted

in the public repository.  I actually removed some unnecessary
backslashes from some string concatenations within parenthesized
expressions, or missing close-parens in a module docstring, etc.
parent cf2f95e1
...@@ -135,11 +135,10 @@ Zope Installation Frequently Asked Questions ...@@ -135,11 +135,10 @@ Zope Installation Frequently Asked Questions
Managing the Zope process Managing the Zope process
1. How do I find the application server in my process listing? 1. How do I find the application server in my process listing?
Whether running Zope with ZServer (yay) or straight PCGI (not Whether running Zope with ZServer (yay) or straight PCGI (not
so yay), there will be a .pid file in var with the pid of the so yay), or there will be a .pid file in var with the pid of the
process. For ZServer, the pid file is named 'z2.pid' (and it process. For ZServer, the pid file is named 'z2.pid' (and it
contains two pids). For PCGI, the file will be 'pcgi.pid'. contains two pids). For PCGI, the file will be 'pcgi.pid'.
...@@ -187,8 +186,8 @@ Zope Installation Frequently Asked Questions ...@@ -187,8 +186,8 @@ Zope Installation Frequently Asked Questions
General General
1. My browser is giving a message of 'Sorry, an error occurred.' 1. My browser is giving a message, 'Sorry, an error occurred.'
How do I find out the error? How do I find out what the real error is?
Step number one in these scenarios is to view the HTML source of Step number one in these scenarios is to view the HTML source of
the frame containing the error. In general, the *traceback* of the frame containing the error. In general, the *traceback* of
...@@ -198,4 +197,4 @@ Zope Installation Frequently Asked Questions ...@@ -198,4 +197,4 @@ Zope Installation Frequently Asked Questions
Occassionally you won't see the error message. Rather, the HTML Occassionally you won't see the error message. Rather, the HTML
source will contain the last good HTML returned by the request source will contain the last good HTML returned by the request
before the error occurred. This is due to caching by the before the error occurred. This is due to caching by the
browser. Clear your cache and view the HTML source again. browser. Clear your cache and view the HTML source again.
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
"""Try to do all of the installation steps. """Try to do all of the installation steps.
This must be run from the top-level directory of the installation. This must be run from the top-level directory of the installation.
\(Yes, this is cheezy. We'll fix this when we have a chance. \(Yes, this is cheezy. We'll fix this when we have a chance.)
""" """
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
"""Try to do all of the installation steps. """Try to do all of the installation steps.
This must be run from the top-level directory of the installation. This must be run from the top-level directory of the installation.
\(Yes, this is cheezy. We'll fix this when we have a chance. \(Yes, this is cheezy. We'll fix this when we have a chance.)
""" """
......
...@@ -517,17 +517,17 @@ def set_locale(val): ...@@ -517,17 +517,17 @@ def set_locale(val):
import locale import locale
except: except:
raise SystemExit, ( raise SystemExit, (
'The locale module could not be imported.\n' \ 'The locale module could not be imported.\n'
'To use localization options, you must ensure\n' \ 'To use localization options, you must ensure\n'
'that the locale module is compiled into your\n' \ 'that the locale module is compiled into your\n'
'Python installation.' 'Python installation.'
) )
try: try:
locale.setlocale(locale.LC_ALL, val) locale.setlocale(locale.LC_ALL, val)
except: except:
raise SystemExit, ( raise SystemExit, (
'The specified locale is not supported by your system.\n' \ 'The specified locale is not supported by your system.\n'
'See your operating system documentation for more\n' \ 'See your operating system documentation for more\n'
'information on locale support.' 'information on locale support.'
) )
if LOCALE_ID is not None: if LOCALE_ID is not None:
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
############################################################################## ##############################################################################
"""Zope user bootstrap system""" """Zope user bootstrap system"""
__version__='$Revision: 1.11 $ '[11:-2] __version__='$Revision: 1.12 $ '[11:-2]
import sys, string, sha, binascii, whrandom, getopt, getpass, os import sys, string, sha, binascii, whrandom, getopt, getpass, os
...@@ -96,9 +96,9 @@ except ImportError: ...@@ -96,9 +96,9 @@ except ImportError:
def generate_salt(): def generate_salt():
"""Generate a salt value for the crypt function.""" """Generate a salt value for the crypt function."""
salt_choices = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ salt_choices = ("ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz" \ "abcdefghijklmnopqrstuvwxyz"
"0123456789./" "0123456789./")
return whrandom.choice(salt_choices)+whrandom.choice(salt_choices) return whrandom.choice(salt_choices)+whrandom.choice(salt_choices)
def generate_passwd(password, encoding): def generate_passwd(password, encoding):
...@@ -114,9 +114,9 @@ def generate_passwd(password, encoding): ...@@ -114,9 +114,9 @@ def generate_passwd(password, encoding):
def write_generated_password(home, ac_path, username): def write_generated_password(home, ac_path, username):
import whrandom import whrandom
pw_choices = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ pw_choices = ("ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz" \ "abcdefghijklmnopqrstuvwxyz"
"0123456789!" "0123456789!")
acfile=open(ac_path, 'w') acfile=open(ac_path, 'w')
pw = '' pw = ''
for i in range(8): for i in range(8):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment