Re: [web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Bruno Rocha
This should work http://pastie.org/2412537

Re: [web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Bruno Rocha
share your whole code in some pastie, gist or send the .py files I will take a look and try it here.

Re: [web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Bruno Rocha
did you imported in this way: from objects import Search return dict(search=Search.show(db)) ???

Re: [web2py] Re: Nesting functions inside functions in controllers

2011-08-22 Thread Bruno Rocha
ok small corretion, you need it as staticmethod (or need a instance before calling) change to: class Search(object): @*staticmethod* def show(db): *Explanations about imports:* from gluon impot * The above is to have access to web2py helpers and other gluon modules, if you d