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
4458ca89
Commit
4458ca89
authored
Dec 19, 1997
by
Jeffrey Shell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixees
parent
24f2d003
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
22 deletions
+17
-22
lib/python/Products/MailHost/MailHost.py
lib/python/Products/MailHost/MailHost.py
+7
-5
lib/python/Products/MailHost/__init__.py
lib/python/Products/MailHost/__init__.py
+10
-17
No files found.
lib/python/Products/MailHost/MailHost.py
View file @
4458ca89
...
@@ -7,13 +7,13 @@ import Globals
...
@@ -7,13 +7,13 @@ import Globals
from
Scheduler.OneTimeEvent
import
OneTimeEvent
from
Scheduler.OneTimeEvent
import
OneTimeEvent
from
ImageFile
import
ImageFile
from
ImageFile
import
ImageFile
#$Id: MailHost.py,v 1.2
0 1997/12/18 16:45
:37 jeffrey Exp $
#$Id: MailHost.py,v 1.2
1 1997/12/19 21:46
:37 jeffrey Exp $
__version__
=
"$Revision: 1.2
0
$"
[
11
:
-
2
]
__version__
=
"$Revision: 1.2
1
$"
[
11
:
-
2
]
smtpError
=
"SMTP Error"
smtpError
=
"SMTP Error"
MailHostError
=
"MailHost Error"
MailHostError
=
"MailHost Error"
addForm
=
HTMLFile
(
'addMailHost_form'
,
globals
(),
localhost
=
gethostname
())
addForm
=
HTMLFile
(
'addMailHost_form'
,
globals
(),
localhost
=
gethostname
())
def
add
(
self
,
id
=
'aMailHost'
,
title
=
'Some mail thing
'
,
smtp_host
=
None
,
def
add
(
self
,
id
,
title
=
'
'
,
smtp_host
=
None
,
localhost
=
'localhost'
,
smtp_port
=
25
,
acl_type
=
'A'
,
acl_roles
=
[],
localhost
=
'localhost'
,
smtp_port
=
25
,
acl_type
=
'A'
,
acl_roles
=
[],
REQUEST
=
None
):
REQUEST
=
None
):
' add a MailHost into the system '
' add a MailHost into the system '
...
@@ -32,8 +32,7 @@ class MailHost(Persistent, Acquisition.Implicit, OFS.SimpleItem.Item,
...
@@ -32,8 +32,7 @@ class MailHost(Persistent, Acquisition.Implicit, OFS.SimpleItem.Item,
meta_type
=
'Mail Host'
meta_type
=
'Mail Host'
manage
=
manage_main
=
HTMLFile
(
'manageMailHost'
,
globals
())
manage
=
manage_main
=
HTMLFile
(
'manageMailHost'
,
globals
())
index_html
=
None
index_html
=
None
icon
=
'MHIcon'
icon
=
'misc_/MailHost/MHIcon'
MHIcon
=
ImageFile
(
"www/MailHost_icon.gif"
,
globals
())
manage_options
=
({
'icon'
:
''
,
'label'
:
'Edit'
,
manage_options
=
({
'icon'
:
''
,
'label'
:
'Edit'
,
'action'
:
'manage_main'
,
'target'
:
'manage_main'
,
'action'
:
'manage_main'
,
'target'
:
'manage_main'
,
...
@@ -227,6 +226,9 @@ def decapitate(message, **kw):
...
@@ -227,6 +226,9 @@ def decapitate(message, **kw):
#$Log: MailHost.py,v $
#$Log: MailHost.py,v $
#Revision 1.21 1997/12/19 21:46:37 jeffrey
#fixees
#
#Revision 1.20 1997/12/18 16:45:37 jeffrey
#Revision 1.20 1997/12/18 16:45:37 jeffrey
#changeover to new ImageFile and HTMLFile handling
#changeover to new ImageFile and HTMLFile handling
#
#
...
...
lib/python/Products/MailHost/__init__.py
View file @
4458ca89
...
@@ -8,28 +8,21 @@
...
@@ -8,28 +8,21 @@
#
#
##############################################################################
##############################################################################
__doc__
=
'''MailHost Product Initialization
__doc__
=
'''MailHost Product Initialization
$Id: __init__.py,v 1.
4 1997/09/18 20:08:52 brian
Exp $'''
$Id: __init__.py,v 1.
5 1997/12/19 21:46:37 jeffrey
Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
MailHost
import
MailHost
from
ImageFile
import
ImageFile
__
.
meta_types
=
{
'name'
:
'Mail Host'
,
meta_types
=
{
'name'
:
'Mail Host'
,
'action'
:
'manage_addMailHost_form'
'action'
:
'manage_addMailHost_form'
},
},
__
.
methods
=
{
methods
=
{
'manage_addMailHost_form'
:
MailHost
.
addForm
,
'manage_addMailHost_form'
:
MailHost
.
addForm
,
'manage_addMailHost'
:
MailHost
.
add
,
'manage_addMailHost'
:
MailHost
.
add
,
}
}
#$Log: __init__.py,v $
misc_
=
{
#Revision 1.4 1997/09/18 20:08:52 brian
'MHIcon'
:
ImageFile
(
"www/MailHost_icon.gif"
,
globals
())
#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)
#
#Revision 1.2 1997/09/09 16:09:13 jeffrey
#minor fixings
#
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