[Erp5-report] r25404 - /erp5/trunk/products/ERP5/Tool/NotificationTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Jan 31 20:27:21 CET 2009


Author: kazuhiko
Date: Sat Jan 31 20:27:21 2009
New Revision: 25404

URL: http://svn.erp5.org?rev=25404&view=rev
Log:
r.25402 is wrong. Document classes cannot be imported here.

Modified:
    erp5/trunk/products/ERP5/Tool/NotificationTool.py

Modified: erp5/trunk/products/ERP5/Tool/NotificationTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/NotificationTool.py?rev=25404&r1=25403&r2=25404&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/NotificationTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/NotificationTool.py [utf8] Sat Jan 31 20:27:21 2009
@@ -31,8 +31,6 @@
 from Products.ERP5Type.Tool.BaseTool import BaseTool
 from Products.ERP5Type import Permissions
 from Products.ERP5 import _dtmldir
-from Products.ERP5.Document.Document import ConversionError
-from Products.ERP5.Document.EmailDocument import MimeTypeException
 
 from mimetypes import guess_type
 from email.MIMEMultipart import MIMEMultipart
@@ -43,6 +41,8 @@
 from email.Header import make_header
 from email import Encoders
 
+class ConversionError(Exception): pass
+class MimeTypeException(Exception): pass
 
 def buildAttachmentDictList(document_list, document_type_list=()):
   """return a list of dictionary which will be used by buildEmailMessage"""




More information about the Erp5-report mailing list