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
234f272b
Commit
234f272b
authored
Sep 08, 2005
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward port 'done_string' from 2.7 branch.
parent
6aaa04a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lib/python/ZPublisher/Test.py
lib/python/ZPublisher/Test.py
+5
-4
No files found.
lib/python/ZPublisher/Test.py
View file @
234f272b
...
@@ -94,12 +94,13 @@ $Id$
...
@@ -94,12 +94,13 @@ $Id$
'''
'''
__version__
=
'$Revision: 1.41 $'
[
11
:
-
2
]
__version__
=
'$Revision: 1.41 $'
[
11
:
-
2
]
DONE_STRING_DEFAULT
=
'
\
n
%s
\
n
\
n
'
%
(
'_'
*
60
)
import
sys
,
traceback
,
profile
,
os
,
getopt
import
sys
,
traceback
,
profile
,
os
,
getopt
from
time
import
clock
from
time
import
clock
repeat_count
=
100
repeat_count
=
100
TupleType
=
type
(())
TupleType
=
type
(())
def
main
():
def
main
():
import
sys
,
os
,
getopt
import
sys
,
os
,
getopt
global
repeat_count
global
repeat_count
...
@@ -240,7 +241,7 @@ defaultModule='Main'
...
@@ -240,7 +241,7 @@ defaultModule='Main'
def
publish
(
script
=
None
,
path_info
=
'/'
,
def
publish
(
script
=
None
,
path_info
=
'/'
,
u
=
None
,
p
=
None
,
d
=
None
,
t
=
None
,
e
=
None
,
s
=
None
,
pm
=
0
,
u
=
None
,
p
=
None
,
d
=
None
,
t
=
None
,
e
=
None
,
s
=
None
,
pm
=
0
,
extra
=
None
,
request_method
=
'GET'
,
extra
=
None
,
request_method
=
'GET'
,
fp
=
None
,
fp
=
None
,
done_string
=
DONE_STRING_DEFAULT
,
stdin
=
sys
.
stdin
):
stdin
=
sys
.
stdin
):
profile
=
p
profile
=
p
...
@@ -367,7 +368,7 @@ def publish(script=None,path_info='/',
...
@@ -367,7 +368,7 @@ def publish(script=None,path_info='/',
elif
pm
:
elif
pm
:
stdout
=
sys
.
stdout
stdout
=
sys
.
stdout
publish_module_pm
(
file
,
environ
=
env
,
stdout
=
stdout
,
extra
=
extra
)
publish_module_pm
(
file
,
environ
=
env
,
stdout
=
stdout
,
extra
=
extra
)
print
'
\
n
%s
\
n
'
%
(
'_'
*
60
)
sys
.
stderr
.
write
(
done_string
)
else
:
else
:
if
silent
:
if
silent
:
stdout
=
open
(
'/dev/null'
,
'w'
)
stdout
=
open
(
'/dev/null'
,
'w'
)
...
@@ -378,6 +379,6 @@ def publish(script=None,path_info='/',
...
@@ -378,6 +379,6 @@ def publish(script=None,path_info='/',
stdout
=
sys
.
stdout
stdout
=
sys
.
stdout
publish_module
(
file
,
environ
=
env
,
stdout
=
stdout
,
extra
=
extra
)
publish_module
(
file
,
environ
=
env
,
stdout
=
stdout
,
extra
=
extra
)
print
'
\
n
%s
\
n
'
%
(
'_'
*
60
)
sys
.
stderr
.
write
(
done_string
)
if
__name__
==
"__main__"
:
main
()
if
__name__
==
"__main__"
:
main
()
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