from turbogears import controllers, expose, redirect
from turbogears import validate, validators, flash, error_handler
from turbogears.widgets import *
from turbogears import controllers, expose, redirect
from turbogears import validate, validators, flash, error_handler
from turbogears.widgets import *
- except ValueError, e:
- raise redirect('../list', tg_flash=_(u'Acción inválida.'))
- raise redirect('../list')
+ except ValueError:
+ raise cherrypy.NotFound
+ raise redirect('../../list')