On 10.07.09 17:39, francoise wrote:
> Hello,
>
> Thanks to your help and to the following HowTo 
>      
> http://plone.org/products/scrawl/documentation/how-to/migrating-news-items-to-scrawl-blog-entries/
> Plone 3 python Content type creation become clearer.
>
> However, some things remain confusing.
>
> I can find the parameters specifics to each content type in their schema
> found in ATContentType/content
>
> I saw the Dublin Core schema in Archetypes/ExtensibleMetadata.py
>
> Just speaking of Dublin Core metadata, it seems that :
>   - some parameters can be set by invokeFactory() for some types
>   - some parameters can be set by item.update () for some types, e.g,
> "modification_date" can be set for Document but not for News and Events
>   - some parameters must be set by item.editMetadata() e.g "subject" for
> Events
>   - some parameters must be set using the setter, i.e
> item.setModificationDate() then item.indexObject() for News and Events
>
> How can I know for a metadata parameter which method I should use ?
>
> It seems the order of the call are important (after invokeFactory) :
>   1. call item.editMetadata()
>   2. call item.update()
>   3. call item.setter()
>   
This makes not much sense to me. You can set individual parameters why using
the auto-generated mutator methods (setXXXX) for each indiviual field.

-aj
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to