On 02/05/2006, at 17:55, jvanasco wrote:
> do you have any clue on how i can raise an error in my controller to
> process as another method?

try:

from turbogears import exception_handler

class Controller(...):

        def handle_value_error(self):
                ....

        @exception_handler(handle_value_error, "isinstance(tg_exception,  
ValueError)")
        def method(self,...):
                raise ValueError

Alberto

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to