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
fa9b40b9
Commit
fa9b40b9
authored
Mar 13, 2003
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Control_Panel show network services.
parent
451134a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
lib/python/App/ApplicationManager.py
lib/python/App/ApplicationManager.py
+16
-1
lib/python/App/dtml/cpContents.dtml
lib/python/App/dtml/cpContents.dtml
+14
-0
No files found.
lib/python/App/ApplicationManager.py
View file @
fa9b40b9
...
...
@@ -12,7 +12,7 @@
##############################################################################
__doc__
=
"""System management components"""
__version__
=
'$Revision: 1.8
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.8
7
$'
[
11
:
-
2
]
import
sys
,
os
,
time
,
Globals
,
Acquisition
,
os
,
Undo
from
Globals
import
DTMLFile
...
...
@@ -437,6 +437,21 @@ class ApplicationManager(Folder,CacheManager):
def
getCLIENT_HOME
(
self
):
return
getConfiguration
().
clienthome
def
getServers
(
self
):
# used only for display purposes
# return a sequence of two-tuples. The first element of
# each tuple is the service name, the second is a string repr. of
# the port/socket/other on which it listens
from
asyncore
import
socket_map
l
=
[]
for
k
,
v
in
socket_map
.
items
():
# this is only an approximation
if
hasattr
(
v
,
'port'
):
type
=
str
(
getattr
(
v
,
'__class__'
,
'unknown'
))
port
=
v
.
port
l
.
append
((
str
(
type
),
'Port: %s'
%
port
))
return
l
def
objectIds
(
self
,
spec
=
None
):
""" this is a patch for pre-2.4 Zope installations. Such
installations don't have an entry for the WebDAV LockManager
...
...
lib/python/App/dtml/cpContents.dtml
View file @
fa9b40b9
...
...
@@ -92,6 +92,20 @@ functions such as database and product management.
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
Network Services
</div>
</td>
<td align="left" valign="top">
<div class="form-text">
<dtml-in getServers>
&dtml-sequence-key; (&dtml-sequence-item;)<br>
</dtml-in>
</div>
</td>
</tr>
<tr>
<td align="left" valign="top">
<div class="form-label">
...
...
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