On Feb 10, 2009, at 1:05 PM, Vanderson Mota dos Santos wrote:
Refactoring:
"or be, the folder's allowed_content_types should NOT be added by
the member."
2009/2/10 Vanderson Mota dos Santos <[email protected]>
Hi all,
I'm trying to set some content types to be addable only
programatically, or be, the folder's allowed_content_types should be
added by the member.
I've tried the implicity addable set both to true and false, and is
not working.
After you set the content type's global_allow to False (or set the
container's allowed_content_types to filter out all content types),
you will then need to use a special method to add the object that
bypasses the security checks...
from Products.CMFPlone.utils import _createObjectByType
_createObjectByType(type_name, container, id)
Ric
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers