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
33c1249a
Commit
33c1249a
authored
Aug 19, 2007
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better wording
parent
ec2c6d5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
lib/python/Products/MailHost/MailHost.py
lib/python/Products/MailHost/MailHost.py
+8
-4
lib/python/Products/MailHost/dtml/manageMailHost.dtml
lib/python/Products/MailHost/dtml/manageMailHost.dtml
+12
-4
No files found.
lib/python/Products/MailHost/MailHost.py
View file @
33c1249a
...
...
@@ -231,14 +231,18 @@ class MailBase(Acquisition.Implicit, OFS.SimpleItem.Item, RoleManager):
return
False
security
.
declareProtected
(
change_configuration
,
'manage_restartQueueThread'
)
def
manage_restartQueueThread
(
self
,
REQUEST
=
None
):
def
manage_restartQueueThread
(
self
,
action
=
'start'
,
REQUEST
=
None
):
""" Restart the queue processor thread """
self
.
_stopQueueProcessorThread
()
self
.
_startQueueProcessorThread
()
if
action
==
'stop'
:
self
.
_stopQueueProcessorThread
()
elif
action
==
'start'
:
self
.
_startQueueProcessorThread
()
else
:
raise
ValueError
(
'Unsupported action %s'
%
action
)
if
REQUEST
is
not
None
:
msg
=
'Queue processor thread
restarted'
msg
=
'Queue processor thread
%sed'
%
action
return
self
.
manage_main
(
self
,
REQUEST
,
manage_tabs_message
=
msg
)
...
...
lib/python/Products/MailHost/dtml/manageMailHost.dtml
View file @
33c1249a
...
...
@@ -128,14 +128,22 @@
<tr>
<td align="left" valign="top">
<div class="form-label">
Queue processor thread alive?
<br/>
Status of queue processor thread
<br/>
</div>
</td>
<td align="left" valign="top">
<div class="form-help">
<dtml-var queueThreadAlive>
<br/>
<a href="manage_restartQueueThread">Restart queue processor thread</a> (this may take some seconds)
<dtml-if "queueThreadAlive()">
Running
<br/>
<a href="manage_restartQueueThread?action=stop">Stop queue processor thread</a> (this may take some seconds)
</dtml-if>
<dtml-if "not queueThreadAlive()">
Stopped
<br/>
<a href="manage_restartQueueThread?action=start">Start queue processor thread</a> (this may take some seconds)
</dtml-if>
</div>
</td>
</tr>
...
...
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