Re: Allowed types programmatically on dexterity content

Johannes Raggam <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
This is a start: use this behavior for your content type:

Products.CMFPlone.interfaces.constrains.ISelectableConstrainTypes

Now you should be able to set the constraint types. Look at the behavior
implementation to get an idea on how to do that.

Cheers, Johannes



On Wed, 2015-03-25 at 18:09 -0300, Bruno Barbosa wrote:
> ​​
> ​​Hello,
> 
> In my project I need to setup programmatically the allowed types at
> add-menu on custom content type.
> 
> On google, I found the follow link:
> http://stackoverflow.com/questions/5194464/how-to-programmatically-control-an-objects-add-menu-list-of-allowed-content-type
> 
> But unfortuna​tel​y don't works for me because I'm using dexterity
> instead of AT.
> 
> 
> Someone has a tip about how to do it with dexterity?
> 
> 
> att,
> 
> --
> Bruno Barbosa
> [email protected]
> ​
> 
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________ Plone-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plone-users

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
signature.asc (application/pgp-signature, 181 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEABECAAYFAlUTJi0ACgkQW4mNMQxDgAdLWwCgyJ3M1VSIv1tStu4PB9lm9qE0
LnQAoN/PGrmiKi4BeZzeHqBZhqjxXqIP
=PS1u
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.