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
17b718ff
Commit
17b718ff
authored
Nov 23, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added merge from 2.1.0
parent
67a4ce4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
ZServer/PCGIServer.py
ZServer/PCGIServer.py
+5
-4
lib/python/ZServer/PCGIServer.py
lib/python/ZServer/PCGIServer.py
+5
-4
No files found.
ZServer/PCGIServer.py
View file @
17b718ff
...
@@ -117,7 +117,7 @@ import DebugLogger
...
@@ -117,7 +117,7 @@ import DebugLogger
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
from
tempfile
import
TemporaryFile
from
tempfile
import
TemporaryFile
import
socket
,
string
,
os
,
sys
,
time
import
socket
,
string
,
os
,
sys
,
time
from
types
import
StringType
from
types
import
StringType
,
TupleType
tz_for_log
=
compute_timezone_for_log
()
tz_for_log
=
compute_timezone_for_log
()
...
@@ -219,11 +219,12 @@ class PCGIChannel(asynchat.async_chat):
...
@@ -219,11 +219,12 @@ class PCGIChannel(asynchat.async_chat):
method
=
self
.
env
[
'REQUEST_METHOD'
]
method
=
self
.
env
[
'REQUEST_METHOD'
]
else
:
else
:
method
=
"GET"
method
=
"GET"
if
self
.
addr
:
addr
=
self
.
addr
if
addr
and
type
(
addr
)
is
TupleType
:
self
.
server
.
logger
.
log
(
self
.
server
.
logger
.
log
(
self
.
addr
[
0
],
addr
[
0
],
'%d - - [%s] "%s %s" %d %d'
%
(
'%d - - [%s] "%s %s" %d %d'
%
(
self
.
addr
[
1
],
addr
[
1
],
time
.
strftime
(
time
.
strftime
(
'%d/%b/%Y:%H:%M:%S '
,
'%d/%b/%Y:%H:%M:%S '
,
time
.
gmtime
(
time
.
time
())
time
.
gmtime
(
time
.
time
())
...
...
lib/python/ZServer/PCGIServer.py
View file @
17b718ff
...
@@ -117,7 +117,7 @@ import DebugLogger
...
@@ -117,7 +117,7 @@ import DebugLogger
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
from
tempfile
import
TemporaryFile
from
tempfile
import
TemporaryFile
import
socket
,
string
,
os
,
sys
,
time
import
socket
,
string
,
os
,
sys
,
time
from
types
import
StringType
from
types
import
StringType
,
TupleType
tz_for_log
=
compute_timezone_for_log
()
tz_for_log
=
compute_timezone_for_log
()
...
@@ -219,11 +219,12 @@ class PCGIChannel(asynchat.async_chat):
...
@@ -219,11 +219,12 @@ class PCGIChannel(asynchat.async_chat):
method
=
self
.
env
[
'REQUEST_METHOD'
]
method
=
self
.
env
[
'REQUEST_METHOD'
]
else
:
else
:
method
=
"GET"
method
=
"GET"
if
self
.
addr
:
addr
=
self
.
addr
if
addr
and
type
(
addr
)
is
TupleType
:
self
.
server
.
logger
.
log
(
self
.
server
.
logger
.
log
(
self
.
addr
[
0
],
addr
[
0
],
'%d - - [%s] "%s %s" %d %d'
%
(
'%d - - [%s] "%s %s" %d %d'
%
(
self
.
addr
[
1
],
addr
[
1
],
time
.
strftime
(
time
.
strftime
(
'%d/%b/%Y:%H:%M:%S '
,
'%d/%b/%Y:%H:%M:%S '
,
time
.
gmtime
(
time
.
time
())
time
.
gmtime
(
time
.
time
())
...
...
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