[Zope] objectValues(meta_type) in python script
Philippe Jadin
philippe@123piano.com
Wed, 24 Oct 2001 12:47:34 +0200
> But this doesn't work:
>
> for item in memberfolder.objectValues('MMM Shop Shopping Cart'):
> shopping_cart = context.getId()
>
> return shopping_cart
>
> Now I expected to recieve a string containing 'Shopping Cart', but I
> recieved a string containing 'CD001' which is a product, not a shopping
> cart.
>
> Doesn't objectValues() work in python scripts ?
if it's :
for item in memberfolder.objectValues('MMM Shop Shopping Cart'):
shopping_cart = item.getId()
return shopping_cart
then I can consider I'm no more a "newbie" ;-)
context is not changed by the for in loop or is it ?
If it doens't work, send me hate mail ;-)
Philippe