[Product-Developers] old content import in Plone 3 - which parameters for invokeFactory
Andreas Jung
lists at zopyx.com
Thu Jul 9 15:39:50 UTC 2009
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:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20090709/dae09f65/attachment.vcf>
More information about the Product-Developers
mailing list