On 7/9/09 5:18 PM, francoise wrote:
Hello,
I am quite confused with invokeFactory to create content type in Plone 3.
I believed the parameters where those of the init method of the content
class (or the addContentType function).
I found the parameters in :
- CMFDefault (Document.py, NewsItem.py, File.py, Image.py ..)
- CMFCalendar (Event.py)
Then I had a problem with setModificationDate() which was not working until
I added an indexObject() call (but setCreationDate() was working).
Searching on plone site, I saw that Plone 3 was using ATContentTypes, and
not CMF Content Types (I saw that in portal_types).
Looking at ATContentTypes/content/document.py, event.py, ... is not clear to
find which parameters I could pass to invokeFactory. The parameters listed
in cmf_edit_kws ?
Every schema field can be used as parameter. That means the exact list
depends on the schema used by your specific content type.
Wichert.
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers