[Zope] Type Error when using ETailer

Norman Khine norman@khine.net
Tue, 15 May 2001 23:21:48 +0100


Hello,
I just installed the etailor e-commerce product, on to

Zope Version  	Zope 2.3.2b2 (binary release, python 1.5.2, win32-x86)
Python Version  	1.5.2 (#0, Jul 30 1999, 09:52:18) [MSC 32 bit (Intel)]
System Platform  	win32

Which is a Win2K

and got a type error when trying to use the mailhost ie to buy a product and
then send the request I got this Type Error.

I then set it up on to a FreeBSD4.2 machine, thinking it is to do with the
Win2K, which has

Zope Version  Zope 2.3.2b2 (source release, python 1.5.2, linux2)
Python Version  2.0 (#2, Jan 8 2001, 16:54:34) [GCC 2.95.2 19991024
(release)]
System Platform  freebsd4


Traceback (innermost last):
  File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line
223, in publish_module
  File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /usr/home/khine/usr/local/Zope/lib/python/Zope/__init__.py, line 221,
in zpublisher_exception_hook
    (Object: CatalogAware)
  File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/mapply.py, line
160, in mapply
    (Object: buy)
  File /usr/home/khine/usr/local/Zope/lib/python/ZPublisher/Publish.py, line
112, in call_object
    (Object: buy)
  File /usr/home/khine/usr/local/Zope/lib/python/Products/Etailer/Cart.py,
line 282, in buy
    (Object: Traversable)
  File
/usr/home/khine/usr/local/Zope/lib/python/Products/Etailer/OrderManager.py,
line 115, in create_order
    (Object: RoleManager)
  File
/usr/home/khine/usr/local/Zope/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
    (Object: <string>)
  File
/usr/home/khine/usr/local/Zope/lib/python/DocumentTemplate/DT_Util.py, line
334, in eval
    (Object: style().postOrder(_.None,_))
    (Info: _)
  File <string>, line 0, in ?
  File /usr/home/khine/usr/local/Zope/lib/python/OFS/DTMLMethod.py, line
182, in __call__
    (Object: postOrder)
  File
/usr/home/khine/usr/local/Zope/lib/python/DocumentTemplate/DT_String.py,
line 538, in __call__
    (Object: postOrder)
  File
/usr/home/khine/usr/local/Zope/lib/python/Products/MailHost/SendMailTag.py,
line 189, in render
    (Object: MailHost)
  File
/usr/home/khine/usr/local/Zope/lib/python/Products/MailHost/MailHost.py,
line 222, in send
    (Object: MailHost)
  File /usr/home/khine/usr/local/lib/python2.0/smtplib.py, line 473, in
sendmail
  File /usr/home/khine/usr/local/lib/python2.0/smtplib.py, line 355, in mail
  File /usr/home/khine/usr/local/lib/python2.0/smtplib.py, line 118, in
quoteaddr
  File /usr/home/khine/usr/local/lib/python2.0/rfc822.py, line 477, in
parseaddr
  File /usr/home/khine/usr/local/lib/python2.0/rfc822.py, line 522, in
getaddrlist
  File /usr/home/khine/usr/local/lib/python2.0/rfc822.py, line 530, in
getaddress
  File /usr/home/khine/usr/local/lib/python2.0/rfc822.py, line 510, in
gotonext
TypeError: len() of unsized object


What I think it is, is to do with the version of zope I am using, this is
because on version 3.2.1b1 this product works well.

Can someone please tell me if I am correct and how I may look to edit the
code so as it is compliant with this version of zope

Many thanks

Norman

      /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Norman Khine
     /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:khine@khine.net
    /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Purley, UK
   /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____
   ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
              /*/             \*\