[Zope] how add properties via Python script? /kv
Dennis Allison
allison at sumeru.stanford.EDU
Wed Nov 5 11:11:05 EST 2003
objectValues() returns a sequence of objects. You need to iterate over
the sequence.
On Wed, 5 Nov 2003, Kai Vermehr wrote:
> I'm trying to add the property "product" to all the images inside the
> "image_folder" with this line in Python:
>
> container.image_folder.objectValues(['Image']).manage_addProperty(produc
> t, name, string)
>
> but it does not work ... why? How should it be done?
>
> thanks! -- 'K:?
>
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
More information about the Zope
mailing list