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
efda724d
Commit
efda724d
authored
Sep 18, 1997
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added meta_type for auto-detection
parent
39b50275
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
lib/python/Products/MailHost/MailHost.py
lib/python/Products/MailHost/MailHost.py
+6
-2
lib/python/Products/MailHost/__init__.py
lib/python/Products/MailHost/__init__.py
+6
-3
No files found.
lib/python/Products/MailHost/MailHost.py
View file @
efda724d
...
...
@@ -6,8 +6,8 @@ import OFS.SimpleItem
import
Globals
from
Scheduler.OneTimeEvent
import
OneTimeEvent
#$Id: MailHost.py,v 1.1
5 1997/09/17 21:08:15 jeffrey
Exp $
__version__
=
"$Revision: 1.1
5
$"
[
11
:
-
2
]
#$Id: MailHost.py,v 1.1
6 1997/09/18 20:08:51 brian
Exp $
__version__
=
"$Revision: 1.1
6
$"
[
11
:
-
2
]
smtpError
=
"SMTP Error"
MailHostError
=
"MailHost Error"
...
...
@@ -28,6 +28,7 @@ def add(self, id='aMailHost', title='Some mail thing', smtp_host=None,
class
MailHost
(
Persistent
,
Acquisition
.
Implicit
,
OFS
.
SimpleItem
.
Item
,
RoleManager
):
'a mailhost...?'
meta_type
=
'Mail Host'
manage
=
HTMLFile
(
'MailHost/manageMailHost'
)
index_html
=
HTMLFile
(
'MailHost/mailHost'
)
icon
=
"MailHost/MailHost_icon.gif"
...
...
@@ -212,6 +213,9 @@ def decapitate(message, **kw):
#$Log: MailHost.py,v $
#Revision 1.16 1997/09/18 20:08:51 brian
#Added meta_type for auto-detection
#
#Revision 1.15 1997/09/17 21:08:15 jeffrey
#threadsafe calls to Scheduler, added .scheduledSend method which is
#the same interface as send, but uses the schedular to send message
...
...
lib/python/Products/MailHost/__init__.py
View file @
efda724d
...
...
@@ -8,12 +8,12 @@
#
##############################################################################
__doc__
=
'''MailHost Product Initialization
$Id: __init__.py,v 1.
3 1997/09/09 20:49:16 jeffrey
Exp $'''
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
$Id: __init__.py,v 1.
4 1997/09/18 20:08:52 brian
Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
import
MailHost
__
.
meta_types
=
{
'name'
:
'MailHost'
,
__
.
meta_types
=
{
'name'
:
'Mail
Host'
,
'action'
:
'manage_addMailHost_form'
},
...
...
@@ -23,6 +23,9 @@ __.methods={
}
#$Log: __init__.py,v $
#Revision 1.4 1997/09/18 20:08:52 brian
#Added meta_type for auto-detection
#
#Revision 1.3 1997/09/09 20:49:16 jeffrey
#Changed Name from MailForm to MailHost
#Simplified interface -- removed built-in templates (for now)
...
...
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