change ATImage metadata
Hi, how can I programatically change the Language attribute in Standard Resource Metadata of ATImage? I tried: for item in context.objectValues('ATImage'): print item.Language() This works perfectly. How do I assign value to Language? -- Milos Prudek
On 2/22/06, MIlos Prudek <prudek@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
participants (2)
-
Martijn Pieters -
MIlos Prudek