I used something like this:

    >>> from Products.CMFPlone.utils import _createObjectByType
>>> _createObjectByType('MyType', folder, id='test', title='Mi title', ...)
    <MyType at /plone/folder/test>

to create the content type and, after that, all my edit/validator tests ran fine.

Héctor Velarde

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

Reply via email to