[Zope] Mailhost TypeError

2000-10-02 Thread Roch'e Compaan

I'm recreated a mailhost in Zope 2.2.0.  Whenever I want to send mail with
sendmail tag I get a TypeError.  This worked in Zope 2.1.x.  This is the
traceback:

Traceback (innermost last):
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope/2-2-0/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: RoleManager)
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: manage_editProperties)
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: manage_editProperties)
  File /usr/local/zope/2-2-0/lib/python/Products/Etailer/OrderManager.py,
line 136, in manage_editProperties
(Object: RoleManager)
  File /usr/local/zope/2-2-0/lib/python/App/special_dtml.py, line 120, in
__call__
(Object: testemail)
  File /usr/local/zope/2-2-0/lib/python/DocumentTemplate/DT_String.py, line
528, in __call__
(Object: testemail)
  File /usr/local/zope/2-2-0/lib/python/Products/MailHost/SendMailTag.py,
line 188, in render
(Object: MailHost)
  File /usr/local/zope/2-2-0/lib/python/Products/MailHost/MailHost.py, line
220, in send
(Object: MailHost)
  File /var/tmp/python/python-root/usr/lib/python1.5/smtplib.py, line 465,
in sendmail
  File /var/tmp/python/python-root/usr/lib/python1.5/smtplib.py, line 349,
in mail
  File /var/tmp/python/python-root/usr/lib/python1.5/smtplib.py, line 118,
in quoteaddr
  File /var/tmp/python/python-root/usr/lib/python1.5/rfc822.py, line 451, in
parseaddr
  File /var/tmp/python/python-root/usr/lib/python1.5/rfc822.py, line 496, in
getaddrlist
  File /var/tmp/python/python-root/usr/lib/python1.5/rfc822.py, line 504, in
getaddress
  File /var/tmp/python/python-root/usr/lib/python1.5/rfc822.py, line 484, in
gotonext
TypeError: len() of unsized object

-->

The source for my DTML method:



To: <>
From: <>
Subject: Test email from 

Hi,

This is a test email from your online shop.

If you have received this email, then you will also receive an email for
each of the orders that are placed at your online store.





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




RE: [Zope] Selection Property

2000-09-28 Thread Roch&#x27;e Compaan

> You need to set up the "bandlist" method as the Value when adding the
> selection property, then make shure that the "bandlist" method is
> available
> from where you use the property sheet.

Been there, done that, still no luck :)

But in the dtml source for properties it says getProperty(select_variable).
If I populate a lines type property in the current folder and then do
 it works.

Roché


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




[Zope] Selection Property

2000-09-28 Thread Roch&#x27;e Compaan

I have a property sheet with a selection property "band" with value
"bandlist".

I created an instance of the class in a Zope folder and created the bandlist
method in the same folder.  When I go to the property sheet of the instance
the selection is not populated.

My bandlist method looks like this:



  



If I view the method it returns the list eg: ['item1','item2','item3'].

What can be wrong?

Roché


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




[Zope] Squishdot

2000-09-07 Thread Roch&#x27;e Compaan

I've upgraded our Zope Server to 2.2.1 and upgraded squishdot to 7.1.
Whenever I post an article on my squishdot sites I get an attribute error:
_catalog.  It seems like squishdot has trouble putting the article in the
catalog.  I did modify all references to thread[0] to getThread(0):

Traceback (innermost last):
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/zope/2-2-0/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: addPosting)
  File /usr/local/zope/2-2-0/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: addPosting)
  File /usr/local/zope/2-2-0/lib/python/Products/Squishdot/Squishdot.py,
line 979, in addPosting
(Object: Traversable)
  File /usr/local/zope/2-2-0/lib/python/Products/Squishdot/Squishdot.py,
line 702, in setItem
(Object: Traversable)
  File /usr/local/zope/2-2-0/lib/python/Products/ZCatalog/ZCatalog.py, line
377, in catalog_object
(Object: Traversable)
AttributeError: (see above)



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