[Zope] len() of unsized object error

Peter Bengtsson peter@grenna.net
Sun, 19 Nov 2000 01:30:24 -0000


If found this TypeError description in many places in the mailing list archive, but no solution to my sendmail problem.

Code:
<dtml-sendmail mailhost="MailHost">
To: <<dtml-var email>>
From: <<dtml-var webmaster_email>>
Subject: Registration at <dtml-var sitetitle>

<dtml-var attached_email>

</dtml-sendmail>

If I do this...:
dtml-sendmail mailhost="MailHost"
To: <<dtml-var email>>
From: <<dtml-var webmaster_email>>
Subject: Registration at <dtml-var sitetitle>

<dtml-var attached_email>

/dtml-sendmail

... it doesn't return any errors and looks fine.


Traceback (innermost last):
  File C:\Program\ZopeSite\lib\python\ZPublisher\Publish.py, line 222, in publish_module
  File C:\Program\ZopeSite\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\Program\ZopeSite\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook
    (Object: Traversable)
  File C:\Program\ZopeSite\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\Program\ZopeSite\lib\python\ZPublisher\mapply.py, line 160, in mapply
    (Object: index_html)
  File C:\Program\ZopeSite\lib\python\ZPublisher\Publish.py, line 112, in call_object
    (Object: index_html)
  File C:\Program\ZopeSite\lib\python\OFS\DTMLMethod.py, line 172, in __call__
    (Object: index_html)
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__
    (Object: index_html)
  File C:\Program\ZopeSite\lib\python\OFS\DTMLMethod.py, line 168, in __call__
    (Object: manage_html)
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__
    (Object: manage_html)
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_With.py, line 146, in render
    (Object: PARENTS[0])
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_With.py, line 146, in render
    (Object: dochtml)
  File C:\Program\ZopeSite\lib\python\OFS\DTMLMethod.py, line 168, in __call__
    (Object: signup_dtml)
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_String.py, line 528, in __call__
    (Object: signup_dtml)
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_With.py, line 146, in render
    (Object: members)
  File C:\Program\ZopeSite\lib\python\DocumentTemplate\DT_Let.py, line 147, in render
    (Object: madepassword="members.makepassword_pym(6)")
  File C:\Program\ZopeSite\lib\python\Products\MailHost\SendMailTag.py, line 188, in render
    (Object: MailHost)
  File C:\Program\ZopeSite\lib\python\Products\MailHost\MailHost.py, line 220, in send
    (Object: MailHost)
  File C:\Program\ZopeSite/bin/lib\smtplib.py, line 465, in sendmail
  File C:\Program\ZopeSite/bin/lib\smtplib.py, line 349, in mail
  File C:\Program\ZopeSite/bin/lib\smtplib.py, line 118, in quoteaddr
  File C:\Program\ZopeSite/bin/lib\rfc822.py, line 451, in parseaddr
  File C:\Program\ZopeSite/bin/lib\rfc822.py, line 496, in getaddrlist
  File C:\Program\ZopeSite/bin/lib\rfc822.py, line 504, in getaddress
  File C:\Program\ZopeSite/bin/lib\rfc822.py, line 484, in gotonext
TypeError: (see above)