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
f9ffaa76
Commit
f9ffaa76
authored
Nov 11, 1996
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor doc change
parent
4bed2623
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
27 deletions
+47
-27
lib/python/ZPublisher/Test.py
lib/python/ZPublisher/Test.py
+47
-27
No files found.
lib/python/ZPublisher/Test.py
View file @
f9ffaa76
...
...
@@ -3,43 +3,60 @@
__doc__
=
'''Command-line Bobo
Usage
:
Usage
bobo [options] module_path [path_info]
Options
:
where
:
-u username:password
module_path -- is a full path to a published module
Supply HTTP authorization information
path_info -- Is the information after the module name that would
normally be specified in a GET URL, including a query string.
-p profiler_data_file
Description
Run under profiler control, generating the profiler
data file, profiler_data_file.
The command-line interface to Bobo provides a handy way to test,
debug, and profile Bobo without a web server.
-t
Options
Compute the time required to complete a request, in
milliseconds.
-u username:password -- Supply HTTP authorization information
-d
-p profiler_data_file -- Run under profiler control,
generating the profiler
data file, profiler_data_file.
Run in debug mode. With this option, bobo will run
under Python debugger control. Two useful breakpoints
are set. The first is at the beginning of the module
publishing code. Steping through this code shows how
bobo finds objects and obtains certain meta-data. The
second breakpoint is at the point just before the published
object is called. To jump to the second breakpoint, you must
enter 's' followed by a carriage return to step into the
module, then enter a 'c' followed by a carriage return to
jump to the first breakpoint and then another 'c' followed by
a carriage return to jump to the point where the object is
called. Finally, enter 's' followed a carriage return.
-t -- Compute the time required to
complete a request, in
milliseconds.
For example, to debug a published object (such as a method)
spam the following might be entered::
-d -- Run in debug mode. With this
option, bobo will run under Python
debugger control. Two useful
breakpoints are set. The first is
at the beginning of the module
publishing code. Steping through
this code shows how bobo finds
objects and obtains certain
meta-data. The second breakpoint is
at the point just before the
published object is called. To jump
to the second breakpoint, you must
enter 's' followed by a carriage
return to step into the module, then
enter a 'c' followed by a carriage
return to jump to the first
breakpoint and then another 'c'
followed by a carriage return to
jump to the point where the object
is called. Finally, enter 's'
followed a carriage return.
Examples
For example, to debug a published object (such as a method), spam,
the following might be entered::
bobo -d /prj/lib/python/mymod container/spam
s
...
...
@@ -48,7 +65,7 @@ Options:
s
$Id: Test.py,v 1.
4 1996/11/11 22:00:01
jim Exp $
$Id: Test.py,v 1.
5 1996/11/11 22:14:26
jim Exp $
'''
# Copyright
#
...
...
@@ -101,6 +118,9 @@ $Id: Test.py,v 1.4 1996/11/11 22:00:01 jim Exp $
# (540) 371-6909
#
# $Log: Test.py,v $
# Revision 1.5 1996/11/11 22:14:26 jim
# Minor doc change
#
# Revision 1.4 1996/11/11 22:00:01 jim
# Minor doc change
#
...
...
@@ -118,7 +138,7 @@ $Id: Test.py,v 1.4 1996/11/11 22:00:01 jim Exp $
#
#
#
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
#! /usr/local/bin/python
...
...
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