[Erp5-report] r9966 - /erp5/trunk/products/ERP5Type/tests/sendMailToList
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 15 11:34:28 CEST 2006
Author: alex
Date: Fri Sep 15 11:34:27 2006
New Revision: 9966
URL: http://svn.erp5.org?rev=9966&view=rev
Log:
changing of zope instance made easier
Modified:
erp5/trunk/products/ERP5Type/tests/sendMailToList
Modified: erp5/trunk/products/ERP5Type/tests/sendMailToList
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/sendMailToList?rev=9966&r1=9965&r2=9966&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/sendMailToList (original)
+++ erp5/trunk/products/ERP5Type/tests/sendMailToList Fri Sep 15 11:34:27 2006
@@ -10,8 +10,9 @@
from email.MIMEMultipart import MIMEMultipart
-COMMASPACE = ', '
-USER = 'seb'
+COMMASPACE = ', '
+USER = 'seb'
+ZOPE_INSTANCE = '/home/%s/zope' % USER
subject = 'ERP5 Unit Test'
from_mail = 'seb at nexedi.com'
@@ -21,7 +22,7 @@
]
-test_msg = file("/home/%s/zope/Products/test_output" % (USER),'r').read()
+test_msg = file("%s/Products/test_output" % (ZOPE_INSTANCE),'r').read()
test_msg = "Date : %s\n\n" % date.today().isoformat() + test_msg
#msg.set_payload(test_msg)
msg = MIMEMultipart()
@@ -33,7 +34,7 @@
# Guarantees the message ends in a newline
msg.preamble = subject
msg.epilogue = ''
-file_content = file("/home/%s/zope/Products/test_full_output" % (USER),'r').read()
+file_content = file("%s/Products/test_full_output" % (ZOPE_INSTANCE),'r').read()
mime_text = MIMEText(test_msg)
mime_text.add_header('Content-Disposition', 'attachment', filename='test_output')
msg.attach(mime_text)
More information about the Erp5-report
mailing list