Re: Allowed types programmatically on dexterity content
Bruno Barbosa <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <CAHxcCH7srpTvm4Nj2nGw=Pg4chmdWHH8BnTtVK9aT+yn0C=Htw@mail.gmail.com> |
Thanks Johannes! it will be very useful. -- Bruno Barbosa [email protected] On Wed, Mar 25, 2015 at 6:18 PM, Johannes Raggam <[email protected]> wrote: > 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 unfortunately 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