On 09.07.09 17:18, francoise wrote:
> Hello,
>
> I am quite confused with invokeFactory to create content type in Plone 3.

Huh? The invokeFactory() API is consistent about all involved components
as a simple grep tells you:

j...@suxmac2:~/sandboxes/plone31/parts/plone grep -r "def invokeFactory(" *
ATContentTypes/lib/constraintypes.py:    def invokeFactory(self,
type_name, id, RESPONSE=None, *args, **kw):
Archetypes/AllowedTypesByIface.py:    def invokeFactory(self, type_name,
id, RESPONSE = None, *args, **kwargs):
CMFCore/PortalFolder.py:    def invokeFactory(self, type_name, id,
RESPONSE=None, *args, **kw):
CMFPlone/PloneFolder.py:    def invokeFactory(self, type_name, id,
RESPONSE=None, *args, **kw):


type_name + id are self-speaking.
**kw represents keyword parameter where the key is a fieldname and the
value a valid value
of this particular 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