[Product-Developers] Folder constraints not applicable to custom content-types

2011-02-28 Thread Andreas Jung
Plone 4.0.3 I have a custom content-types AuthoringPublishedContent (derived from ATDocument). Instances of this type should be created as content of some folder generated by some backend logic (and only there). That's why the content-types is not implictly addable. On the destination folder I

Re: [Product-Developers] Folder constraints not applicable to custom content-types

2011-02-28 Thread Raphael Ritz
On 2/28/11 1:35 PM, Andreas Jung wrote: Plone 4.0.3 I have a custom content-types AuthoringPublishedContent (derived from ATDocument). Instances of this type should be created as content of some folder generated by some backend logic (and only there). That's why the content-types is not

Re: [Product-Developers] Folder constraints not applicable to custom content-types

2011-02-28 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raphael Ritz wrote: Not sure I get the full picture but you can only blacklist locally, not white list. Meaning, you can't Allow this type here if it is not allowed in the FTI for the container type. Only the other way around works. You got it

Re: [Product-Developers] Folder constraints not applicable to custom content-types

2011-02-28 Thread Yuri
Il 28/02/2011 15:23, Andreas Jung ha scritto: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raphael Ritz wrote: Not sure I get the full picture but you can only blacklist locally, not white list. Meaning, you can't Allow this type here if it is not allowed in the FTI for the container

Re: [Product-Developers] Folder constraints not applicable to custom content-types

2011-02-28 Thread Raphael Ritz
On 2/28/11 3:23 PM, Andreas Jung wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raphael Ritz wrote: Not sure I get the full picture but you can only blacklist locally, not white list. Meaning, you can't Allow this type here if it is not allowed in the FTI for the container type. Only

Re: [Product-Developers] Folder constraints not applicable to custom content-types

2011-02-28 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Two possible workaround: - - hiding the entry from the dropdown menu through CSS (I failed overriding an !important statement) - - monkey-patching _allowedTypes() in plone.app.content.browser.folderfactories which actually did the job for me