Commit 4458ca89 authored by Jeffrey Shell's avatar Jeffrey Shell

fixees

parent 24f2d003
...@@ -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.20 1997/12/18 16:45:37 jeffrey Exp $ #$Id: MailHost.py,v 1.21 1997/12/19 21:46:37 jeffrey Exp $
__version__ = "$Revision: 1.20 $"[11:-2] __version__ = "$Revision: 1.21 $"[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
# #
......
...@@ -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
#
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment