Thanks for clarifying why the first one wasn't working. Terça-feira, 11 de Dezembro de 2012 14:08:00 UTC, Anthony escreveu: > > See http://code.google.com/p/web2py/source/browse/gluon/myregex.py#20 -- > the controller only exposes functions identified by matching regex_expose, > which requires using the "def" syntax to define the function. So only your > second option will work. > > Anthony > > On Tuesday, December 11, 2012 7:07:23 AM UTC-5, Leonel Câmara wrote: >> >> One turnaround I've found is to put this in the controller file instead: >> >> >> def mycontroller(): >> return make_controller(someargument)() >> >> >> Which is a little more ugly and, in my opinion, less readable. >> >> So if anyone can make the first version work I'd love that. >> >
--

