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
4ceb750a
Commit
4ceb750a
authored
May 04, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for post-mortem debugging view pm flag to publish method.
parent
5ad08ed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
lib/python/ZPublisher/Test.py
lib/python/ZPublisher/Test.py
+10
-3
No files found.
lib/python/ZPublisher/Test.py
View file @
4ceb750a
...
...
@@ -78,7 +78,7 @@ Examples
s
$Id: Test.py,v 1.1
5 1998/04/29 19:08:19
jim Exp $
$Id: Test.py,v 1.1
6 1998/05/04 21:37:32
jim Exp $
'''
# Copyright
#
...
...
@@ -132,7 +132,7 @@ $Id: Test.py,v 1.15 1998/04/29 19:08:19 jim Exp $
#
#
#
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
import
sys
,
traceback
,
profile
,
os
repeat_count
=
100
...
...
@@ -229,7 +229,7 @@ def publish_module_pm(module_name,
except
:
pass
if
after_list
[
0
]
is
not
None
:
after_list
[
0
]()
def
publish
(
script
,
path_info
,
u
=
None
,
p
=
None
,
d
=
None
,
t
=
None
,
e
=
{},
s
=
None
):
def
publish
(
script
,
path_info
,
u
=
None
,
p
=
None
,
d
=
None
,
t
=
None
,
e
=
{},
s
=
None
,
pm
=
0
):
import
sys
,
os
,
getopt
,
string
...
...
@@ -352,6 +352,10 @@ def publish(script,path_info,u=None,p=None,d=None,t=None,e={},s=None):
t
=
time
(
publish_module
,
file
,
stdout
=
open
(
'/dev/null'
,
'w'
),
environ
=
env
)
stdout
.
write
(
'%s milliseconds
\
n
'
%
t
)
elif
pm
:
stdout
=
sys
.
stdout
publish_module_pm
(
file
,
environ
=
env
,
stdout
=
stdout
)
print
'
\
n
%s
\
n
'
%
(
'_'
*
60
)
else
:
if
silent
:
stdout
=
open
(
'/dev/null'
,
'w'
)
else
:
stdout
=
sys
.
stdout
...
...
@@ -362,6 +366,9 @@ if __name__ == "__main__": main()
#
# $Log: Test.py,v $
# Revision 1.16 1998/05/04 21:37:32 jim
# Added support for post-mortem debugging view pm flag to publish method.
#
# Revision 1.15 1998/04/29 19:08:19 jim
# Add support for post-mortem debugging.
#
...
...
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