Be aware that the most "TGish way" to achieve this is usually through a validator. See abort documentation that has an example exactly on doing that:
http://turbogears.readthedocs.org/en/latest/reference/classes.html?highlight=abort#tg.controllers.util.abort That way you check for whatever you need during validation phase, and go on with the controller only if everything is there. On Wed, Nov 12, 2014 at 4:49 PM, lebouquetin <[email protected]> wrote: > By the way, what is the right way to manually raise a 404 ? For example > when I got a "orm_exc.NoResultFound" from SQLA, i'd like to convert it > (sometimes) in a 404. > > I did not find this in the documentation (only for TG1) > > Damien > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/turbogears. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears. For more options, visit https://groups.google.com/d/optout.

