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
21f2493d
Commit
21f2493d
authored
Oct 23, 1998
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug that make path_info required.
parent
541124a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
lib/python/ZPublisher/Test.py
lib/python/ZPublisher/Test.py
+9
-6
No files found.
lib/python/ZPublisher/Test.py
View file @
21f2493d
...
...
@@ -130,9 +130,9 @@ Examples
s
$Id: Test.py,v 1.2
4 1998/09/21 23:58:25
jim Exp $
$Id: Test.py,v 1.2
5 1998/10/23 17:59:07
jim Exp $
'''
__version__
=
'$Revision: 1.2
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
5
$'
[
11
:
-
2
]
import
sys
,
traceback
,
profile
,
os
,
getopt
,
string
from
time
import
clock
...
...
@@ -144,8 +144,9 @@ def main():
try
:
optlist
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
'dtu:p:r:e:s'
)
if
len
(
args
)
>
2
or
len
(
args
)
<
2
:
raise
TypeError
,
None
if
len
(
args
)
==
2
:
path_info
=
args
[
1
]
if
len
(
args
)
<
1
or
len
(
args
)
>
2
:
raise
TypeError
,
None
elif
len
(
args
)
==
1
:
args
=
args
[
0
],
'/'
path_info
=
args
[
1
]
except
:
sys
.
stderr
.
write
(
__doc__
)
sys
.
exit
(
-
1
)
...
...
@@ -233,7 +234,9 @@ except:
def
getlineno
(
code
):
return
code
.
co_firstlineno
def
publish
(
script
,
path_info
,
u
=
None
,
p
=
None
,
d
=
None
,
t
=
None
,
e
=
None
,
s
=
None
,
pm
=
0
):
defaultModule
=
'Main'
def
publish
(
script
=
None
,
path_info
=
'/'
,
u
=
None
,
p
=
None
,
d
=
None
,
t
=
None
,
e
=
None
,
s
=
None
,
pm
=
0
):
profile
=
p
debug
=
d
...
...
@@ -241,7 +244,7 @@ def publish(script,path_info,u=None,p=None,d=None,t=None,e=None,s=None,pm=0):
silent
=
s
if
e
is
None
:
e
=
{}
if
not
script
:
script
=
'+Main'
if
script
is
None
:
script
=
defaultModule
if
script
[
0
]
==
'+'
:
script
=
'../../lib/python/'
+
script
[
1
:]
env
=
e
...
...
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