Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
4c3df7c3
Commit
4c3df7c3
authored
Feb 07, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in 'lines' conversion and fixed documentation for
'required'.
parent
3840b0d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
lib/python/ZPublisher/Publish.py
lib/python/ZPublisher/Publish.py
+10
-5
No files found.
lib/python/ZPublisher/Publish.py
View file @
4c3df7c3
...
...
@@ -249,7 +249,7 @@ Function, method, and class objects
string -- python strings
R
equired -- non-blank python strings
r
equired -- non-blank python strings
regex -- Python case-sensitive regular expressions
...
...
@@ -518,7 +518,7 @@ Publishing a module using Fast CGI
o Configure the Fast CGI-enabled web server to execute this
file.
$Id: Publish.py,v 1.3
1 1997/01/30 00:50:18
jim Exp $"""
$Id: Publish.py,v 1.3
2 1997/02/07 14:41:32
jim Exp $"""
#'
# Copyright
#
...
...
@@ -572,7 +572,7 @@ $Id: Publish.py,v 1.31 1997/01/30 00:50:18 jim Exp $"""
#
# See end of file for change log.
#
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
2
$'
[
11
:
-
2
]
def
main
():
...
...
@@ -582,7 +582,7 @@ def main():
if
__name__
==
"__main__"
:
main
()
import
sys
,
os
,
string
,
types
,
newcgi
,
regex
import
sys
,
os
,
string
,
types
,
newcgi
,
regex
,
regsub
from
CGIResponse
import
Response
from
Realm
import
Realm
,
allow_group_composition
...
...
@@ -1081,9 +1081,10 @@ def field2tokens(v):
except
:
v
=
str
(
v
)
return
string
.
split
(
v
)
def
field2lines
(
v
):
def
field2lines
(
v
,
crlf
=
regex
.
compile
(
'
\
r
\
n
\
|
\
n
\
r
'
)
):
try
:
v
=
v
.
read
()
except
:
v
=
str
(
v
)
v
=
regsub
.
gsub
(
crlf
,
'
\
n
'
,
v
)
return
string
.
split
(
v
,
'
\
n
'
)
def
field2date
(
v
):
...
...
@@ -1405,6 +1406,10 @@ def publish_module(module_name,
#
# $Log: Publish.py,v $
# Revision 1.32 1997/02/07 14:41:32 jim
# Fixed bug in 'lines' conversion and fixed documentation for
# 'required'.
#
# Revision 1.31 1997/01/30 00:50:18 jim
# Added has_key method to Request
#
...
...
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