[Product-Developers] old content import in Plone 3 - which parameters for invokeFactory
francoise
fcodvpt at gmail.com
Thu Jul 9 15:53:18 UTC 2009
No problem with invokeFactory for type_name and id, I am searching what can
be passed in **kw for each type of content
Andreas Jung-5 wrote:
>
> Huh? The invokeFactory() API is consistent about all involved components
> as a simple grep tells you:
>
> jung at 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:info at zopyx.com
> 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
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
>
>
--
View this message in context: http://n2.nabble.com/old-content-import-in-Plone-3---which-parameters-for-invokeFactory-tp3232090p3232316.html
Sent from the Product Developers mailing list archive at Nabble.com.
More information about the Product-Developers
mailing list