The following approach works

        portal_types = portal['portal_types']
        typeinfo = portal_types.getTypeInfo('my.product.applicationproduct')
        typeinfo.global_allow = True
        import transaction; transaction.commit()

        portal.invokeFactory(
            'Folder',
            'folder',
            title=u"folder"
        )
        folder = portal['folder']

        folder.invokeFactory(
            'my.product.applicationproduct',
            'applicationProduct',
            title=u"Application Product"
        )
        applicationProduct = folder['applicationProduct']

Problem solved, thanks!
Maarten

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

Reply via email to