I also posted a message yesterday regarding the views and the load function;
It seems like if the URL has some additional 'args' LOAD returns the HTML view rather than the .load view.
Thanks. On 6/1/11 2:23 PM, Massimo Di Pierro wrote:
Please try LOAD('default','menu',ajax=True) you may get a ticket. Check what it says. On Jun 1, 12:34 pm, salbefe<[email protected]> wrote:Hello, The following code before I updated web2py via mercurial worked well for me. Now I get the following error if the ajax parameter is set to False. If is set to True, there is no error but the place where the view should be loaded is alway saying: "loading..." and nothing is showed. <div class="unit"> <div class="container"> <div id="nav"> {{=LOAD('default','menu',ajax=False)}} </div> </div> </div> Traceback (most recent call last): File "/var/web2py/gluon/restricted.py", line 184, in restricted exec ccode in environment File "/var/web2py/applications/init/views/default/ver_datos.html", line 61, in<module> <td>{{=locale.format("%.*f",(4,linea.vel_sonido),True)}}</td> File "/var/web2py/gluon/compileapp.py", line 135, in __call__ page = run_controller_in(c, f, other_environment) File "/var/web2py/gluon/compileapp.py", line 429, in run_controller_in restricted(code, environment, filename) File "/var/web2py/gluon/restricted.py", line 192, in restricted raise RestrictedError(layer, code, '', environment) RestrictedError Any help, please?? Thanks in advance

