Hi,

On Zope 2.3.0 and 2.3.1b1, the following method produces an error 
when ZDebug is installed; If I remove ZDebug, it works fine.

<dtml-sendmail mailhost=MailHost>
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Test
This is a test
</dtml-sendmail>

With ZDebug the content of the sendmail tag is ignored; sendmail.send 
is called with all arguments empty.


Traceback:

Error type: TypeError
Error value: len() of unsized object

Traceback (innermost last):
   File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 222, in publish_module
   File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 187, in publish
   File /opt/Zope-2.3.0-linux2-x86/lib/python/Zope/__init__.py, line 
221, in zpublisher_exception_hook
     (Object: ApplicationDefaultPermissions)
   File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 171, in publish
   File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/mapply.py, 
line 160, in mapply
     (Object: mailtest)
   File /opt/Zope-2.3.0-linux2-x86/lib/python/ZPublisher/Publish.py, 
line 112, in call_object
     (Object: mailtest)
   File /opt/Zope-2.3.0-linux2-x86/lib/python/OFS/DTMLMethod.py, line 
189, in __call__
     (Object: mailtest)
   File /opt/Zope/lib/python/Products/ZDebug/DTMLLocator.py, line 103, 
in __call__
     (Object: mailtest)
   File 
/opt/Zope-2.3.0-linux2-x86/lib/python/DocumentTemplate/DT_String.py, 
line 538, in __call__
     (Object: mailtest)
   File /opt/Zope/lib/python/Products/ZDebug/DTMLDebug.py, line 307, 
in debug_render_blocks
   File /opt/Zope/lib/python/Products/ZDebug/DTMLDebug.py, line 239, 
in debugException
     (Object: MailHost)
   File /opt/Zope/lib/python/Products/ZDebug/DTMLDebug.py, line 305, 
in debug_render_blocks
   File 
/opt/Zope-2.3.0-linux2-x86/lib/python/Products/MailHost/SendMailTag.py, 
line 188, in render
     (Object: MailHost)
   File 
/opt/Zope-2.3.0-linux2-x86/lib/python/Products/MailHost/MailHost.py, 
line 222, in send
     (Object: MailHost)
   File /opt/Zope-2.3.0-linux2-x86/lib/python1.5/smtplib.py, line 465, 
in sendmail
   File /opt/Zope-2.3.0-linux2-x86/lib/python1.5/smtplib.py, line 349, in mail
   File /opt/Zope-2.3.0-linux2-x86/lib/python1.5/smtplib.py, line 118, 
in quoteaddr
   File /opt/Zope-2.3.0-linux2-x86/lib/python1.5/rfc822.py, line 451, 
in parseaddr
   File /opt/Zope-2.3.0-linux2-x86/lib/python1.5/rfc822.py, line 496, 
in getaddrlist
   File /opt/Zope-2.3.0-linux2-x86/lib/python1.5/rfc822.py, line 504, 
in getaddress
   File /opt/Zope-2.3.0-linux2-x86/lib/python1.5/rfc822.py, line 484, 
in gotonext
TypeError: (see above)
-- 
--
Itai Tavor                      -- "Je sautille, donc je suis."    --
[EMAIL PROTECTED]            --               - Kermit the Frog --
--                                                                 --
-- "If you haven't got your health, you haven't got anything"      --


_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to