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
a6ab487b
Commit
a6ab487b
authored
Jun 20, 2002
by
Matt Behrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#72: start on Windows 95 systems with no network devices
parent
4e57fbc6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
ZServer/medusa/http_server.py
ZServer/medusa/http_server.py
+5
-2
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/ZServer/medusa/http_server.py
lib/python/ZServer/medusa/http_server.py
+5
-2
No files found.
ZServer/medusa/http_server.py
View file @
a6ab487b
...
...
@@ -6,7 +6,7 @@
# All Rights Reserved.
#
RCS_ID
=
'$Id: http_server.py,v 1.3
2 2002/06/11 22:02:47 chrism
Exp $'
RCS_ID
=
'$Id: http_server.py,v 1.3
3 2002/06/20 14:39:34 zigg
Exp $'
# python modules
import
os
...
...
@@ -578,7 +578,10 @@ class http_server (asyncore.dispatcher):
host
,
port
=
self
.
socket
.
getsockname
()
if
not
ip
:
self
.
log_info
(
'Computing default hostname'
,
'warning'
)
ip
=
socket
.
gethostbyname
(
socket
.
gethostname
())
try
:
ip
=
socket
.
gethostbyname
(
socket
.
gethostname
())
except
socket
.
error
:
ip
=
socket
.
gethostbyname
(
'localhost'
)
try
:
self
.
server_name
=
socket
.
gethostbyaddr
(
ip
)[
0
]
except
socket
.
error
:
...
...
doc/CHANGES.txt
View file @
a6ab487b
...
...
@@ -13,6 +13,9 @@ Zope Changes
were bypassed when using medusa directly without importing
ZServer first (as when using monitor_client.py).
- Collector #72: Start on Windows 95 machines with no network
devices installed.
Zope 2.6.0 alpha 1
Features Added
...
...
lib/python/ZServer/medusa/http_server.py
View file @
a6ab487b
...
...
@@ -6,7 +6,7 @@
# All Rights Reserved.
#
RCS_ID
=
'$Id: http_server.py,v 1.3
2 2002/06/11 22:02:47 chrism
Exp $'
RCS_ID
=
'$Id: http_server.py,v 1.3
3 2002/06/20 14:39:34 zigg
Exp $'
# python modules
import
os
...
...
@@ -578,7 +578,10 @@ class http_server (asyncore.dispatcher):
host
,
port
=
self
.
socket
.
getsockname
()
if
not
ip
:
self
.
log_info
(
'Computing default hostname'
,
'warning'
)
ip
=
socket
.
gethostbyname
(
socket
.
gethostname
())
try
:
ip
=
socket
.
gethostbyname
(
socket
.
gethostname
())
except
socket
.
error
:
ip
=
socket
.
gethostbyname
(
'localhost'
)
try
:
self
.
server_name
=
socket
.
gethostbyaddr
(
ip
)[
0
]
except
socket
.
error
:
...
...
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