[Zope] Keep getting this AttributeError

Dieter Maurer dieter@handshake.de
Thu, 20 Sep 2001 20:28:55 +0200 (CEST)


Gitte Wange writes:
 > I have some code that I use in several places ... but there is one place it
 > won't work.
 > 
 > Here's a snip of the code:
 > 
 > <dtml-in "cart_obj.listProducts()">
 >  <dtml-let item="_.getitem('sequence-item')">
 >   <dtml-var item>
 >  </dtml-let>
 > </dtml-in>
 > 
 > The cart_obj is a Shopping Cart object and I have checked (by printing out
 > the REQUEST object on screen) that the object is set.
 > 
 > Now this is the error I keep on getting:
 > 
 > Error Type: AttributeError
 > Error Value: listProducts
Seems that the "cart_obj" is something different when it does
not work....
Either a different type of object (e.g. a string or a different
object class) or maybe some security setting.
Sometimes "Unauthorized" is mapped to other errors.


Dieter