[Checkins] SVN: Products.MailHost/trunk/ Cleanup

Hanno Schlichting hannosch at hannosch.eu
Tue Jul 13 12:13:04 EDT 2010


Log message for revision 114711:
  Cleanup
  

Changed:
  U   Products.MailHost/trunk/README.txt
  U   Products.MailHost/trunk/src/Products/MailHost/MailHost.py
  D   Products.MailHost/trunk/src/Products/MailHost/README.txt
  U   Products.MailHost/trunk/src/Products/MailHost/SendMailTag.py
  U   Products.MailHost/trunk/src/Products/MailHost/__init__.py
  U   Products.MailHost/trunk/src/Products/MailHost/decorator.py
  U   Products.MailHost/trunk/src/Products/MailHost/interfaces.py
  U   Products.MailHost/trunk/src/Products/MailHost/tests/__init__.py
  U   Products.MailHost/trunk/src/Products/MailHost/tests/testMailHost.py
  D   Products.MailHost/trunk/src/Products/MailHost/version.txt

-=-
Modified: Products.MailHost/trunk/README.txt
===================================================================
--- Products.MailHost/trunk/README.txt	2010-07-13 16:08:42 UTC (rev 114710)
+++ Products.MailHost/trunk/README.txt	2010-07-13 16:13:03 UTC (rev 114711)
@@ -1,4 +1,23 @@
 Overview
 ========
 
-This package provides zope.sendmail integration for Zope 2.
+The MailHost product provides support for sending email from within the Zope
+environment using MailHost objects.
+
+An optional character set can be specified to automatically encode unicode
+input, and perform appropriate RFC 2822 header and body encoding for the
+specified character set. Full python email.Message.Message objects may be sent.
+
+Email can optionally be encoded using Base64, Quoted-Printable or UUEncode
+encoding (though automatic body encoding will be applied if a character set is
+specified).
+
+MailHost provides integration with the Zope transaction system and optional
+support for asynchronous mail delivery. Asynchronous mail delivery is
+implemented using a queue and a dedicated thread processing the queue. The
+thread is (re)-started automatically when sending an email. The thread can be
+started manually (in case of restart) by calling its
+manage_restartQueueThread?action=start method through HTTP. There is currently
+no possibility to start the thread at Zope startup time.
+
+Supports TLS/SSL encryption (requires Python compiled with SSL support).

Modified: Products.MailHost/trunk/src/Products/MailHost/MailHost.py
===================================================================
--- Products.MailHost/trunk/src/Products/MailHost/MailHost.py	2010-07-13 16:08:42 UTC (rev 114710)
+++ Products.MailHost/trunk/src/Products/MailHost/MailHost.py	2010-07-13 16:13:03 UTC (rev 114711)
@@ -11,8 +11,6 @@
 #
 ##############################################################################
 """SMTP mail objects
-
-$Id$
 """
 import logging
 from os.path import realpath

Deleted: Products.MailHost/trunk/src/Products/MailHost/README.txt
===================================================================
--- Products.MailHost/trunk/src/Products/MailHost/README.txt	2010-07-13 16:08:42 UTC (rev 114710)
+++ Products.MailHost/trunk/src/Products/MailHost/README.txt	2010-07-13 16:13:03 UTC (rev 114711)
@@ -1,24 +0,0 @@
-MailHost
-
-
-  The MailHost product provides support for sending email from
-  within the Zope environment using MailHost objects.
-
-  An optional character set can be specified to automatically encode unicode
-  input, and perform appropriate RFC 2822 header and body encoding for
-  the specified character set.  Full python email.Message.Message objects
-  may be sent.
-
-  Email can optionally be encoded using Base64, Quoted-Printable
-  or UUEncode encoding (though automatic body encoding will be applied if a
-  character set is specified).
-
-  MailHost provides integration with the Zope transaction system and optional
-  support for asynchronous mail delivery. Asynchronous mail delivery is
-  implemented using a queue and a dedicated thread processing the queue. The
-  thread is (re)-started automatically when sending an email. The thread can be
-  startet manually (in case of restart) by calling its
-  manage_restartQueueThread?action=start method through HTTP. There is
-  currently no possibility to start the thread at Zope startup time.
-
-  Supports TLS/SSL encryption (requires Python compiled with SSL support)

Modified: Products.MailHost/trunk/src/Products/MailHost/SendMailTag.py
===================================================================
--- Products.MailHost/trunk/src/Products/MailHost/SendMailTag.py	2010-07-13 16:08:42 UTC (rev 114710)
+++ Products.MailHost/trunk/src/Products/MailHost/SendMailTag.py	2010-07-13 16:13:03 UTC (rev 114711)
@@ -10,13 +10,12 @@
 # FOR A PARTICULAR PURPOSE
 #
 ##############################################################################
-__rcs_id__='$Id$'
-__version__='$Revision: 1.18 $'[11:-2]
 
 from MailHost import MailBase, MailHostError
 from DocumentTemplate.DT_Util import parse_params,render_blocks
 from DocumentTemplate.DT_String import String
 
+
 class SendMailTag:
     '''the send mail tag, used like thus:
 
@@ -102,21 +101,17 @@
         else: self.encode=None
 
     def render(self, md):
-        args=self.args
-        has_key=args.has_key
-
         if self.mailhost:
-            mhost=md[self.mailhost]
+            mhost = md[self.mailhost]
         elif self.smtphost:
-            mhost=MailBase( smtp_host=self.smtphost, smtp_port=self.port )
+            mhost = MailBase(smtp_host=self.smtphost, smtp_port=self.port)
 
         mhost.send(render_blocks(self.section.blocks, md),
                    self.mailto, self.mailfrom,
-                   self.subject, self.encode
-                   )
+                   self.subject, self.encode)
 
         return ' '
 
-    __call__=render
+    __call__ = render
 
-String.commands['sendmail']=SendMailTag
+String.commands['sendmail'] = SendMailTag

Modified: Products.MailHost/trunk/src/Products/MailHost/__init__.py
===================================================================
--- Products.MailHost/trunk/src/Products/MailHost/__init__.py	2010-07-13 16:08:42 UTC (rev 114710)
+++ Products.MailHost/trunk/src/Products/MailHost/__init__.py	2010-07-13 16:13:03 UTC (rev 114711)
@@ -10,9 +10,6 @@
 # FOR A PARTICULAR PURPOSE
 #
 ##############################################################################
-__doc__='''MailHost Product Initialization
-$Id$'''
-__version__='$Revision: 1.22 $'[11:-2]
 
 import MailHost
 import SendMailTag

Modified: Products.MailHost/trunk/src/Products/MailHost/decorator.py
===================================================================
--- Products.MailHost/trunk/src/Products/MailHost/decorator.py	2010-07-13 16:08:42 UTC (rev 114710)
+++ Products.MailHost/trunk/src/Products/MailHost/decorator.py	2010-07-13 16:13:03 UTC (rev 114711)
@@ -12,8 +12,6 @@
 ##############################################################################
 """
 Decorator(s)
-
-$Id: MailHost.py 78992 2007-08-19 11:58:08Z andreasjung $
 """
 
 def synchronized(lock):

Modified: Products.MailHost/trunk/src/Products/MailHost/interfaces.py
===================================================================
--- Products.MailHost/trunk/src/Products/MailHost/interfaces.py	2010-07-13 16:08:42 UTC (rev 114710)
+++ Products.MailHost/trunk/src/Products/MailHost/interfaces.py	2010-07-13 16:13:03 UTC (rev 114711)
@@ -10,9 +10,7 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""MailHost z3 interfaces.
-
-$Id$
+"""MailHost interfaces.
 """
 
 from zope.interface import Interface

Modified: Products.MailHost/trunk/src/Products/MailHost/tests/__init__.py
===================================================================
--- Products.MailHost/trunk/src/Products/MailHost/tests/__init__.py	2010-07-13 16:08:42 UTC (rev 114710)
+++ Products.MailHost/trunk/src/Products/MailHost/tests/__init__.py	2010-07-13 16:13:03 UTC (rev 114711)
@@ -11,5 +11,3 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-
-# This file is needed to make this a package.

Modified: Products.MailHost/trunk/src/Products/MailHost/tests/testMailHost.py
===================================================================
--- Products.MailHost/trunk/src/Products/MailHost/tests/testMailHost.py	2010-07-13 16:08:42 UTC (rev 114710)
+++ Products.MailHost/trunk/src/Products/MailHost/tests/testMailHost.py	2010-07-13 16:13:03 UTC (rev 114711)
@@ -11,8 +11,6 @@
 #
 ##############################################################################
 """MailHost unit tests.
-
-$Id$
 """
 
 import unittest

Deleted: Products.MailHost/trunk/src/Products/MailHost/version.txt
===================================================================
--- Products.MailHost/trunk/src/Products/MailHost/version.txt	2010-07-13 16:08:42 UTC (rev 114710)
+++ Products.MailHost/trunk/src/Products/MailHost/version.txt	2010-07-13 16:13:03 UTC (rev 114711)
@@ -1 +0,0 @@
-MailHost-1-4-0



More information about the checkins mailing list