[Zope-dev] ZDebug conflicts with MailHost?
Itai Tavor
itai@optusnet.com.au
Fri, 2 Mar 2001 16:24:25 +1100
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: itai@optusnet.com.au
From: itai@optusnet.com.au
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." --
itai@optusnet.com.au -- - Kermit the Frog --
-- --
-- "If you haven't got your health, you haven't got anything" --