This works but it makes me add
@expose('json') to every method.
In fact, i would like to do something like this:
class MyController(BaseController):
@expose('some_template.html') def foo(self):
return dict(a=1, b=2)my_controller = MyController()
response = my_controller.foo()
# test values inside "response" dict
but it's not possible, at least directly
León Domingo
Ender - Factoría de Software
leon.d...@ender.es
Avda. Cerro del Águila, 7. S23 - 2ª Planta
28703 S.S. de los Reyes (MADRID)
Tlf. 902 01 44 01