[Zope] change ATImage metadata

Martijn Pieters mj at zopatista.com
Wed Feb 22 15:42:31 EST 2006

On 2/22/06, MIlos Prudek <prudek at bvx.cz> wrote:
> how can I programatically change the Language attribute in Standard Resource
> Metadata of ATImage?

(First of al:l this is a Plone question and would have drawn a quicker
response on the plone mailinglists)

The language attribute is a standard Archetypes field, and as such you
can ask such fields what it's accesor and mutator are:

  >>> field = item.Schema().get('language')
  >>> field.accessor, field.mutator
  ('Language', 'setLanguage')

So item.setLanguage will mutate the language field.

Martijn Pieters

More information about the Zope mailing list