[web2py] Re: Problems using LOAD function
Please try LOAD('default','menu',ajax=True) you may get a ticket. Check what it says. On Jun 1, 12:34 pm, salbefe salb...@gmail.com 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
Re: [web2py] Re: Problems using LOAD function
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, salbefesalb...@gmail.com 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, inmodule 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
Re: [web2py] Re: Problems using LOAD function
To get .load view: LOAD('default','menu.load',ajax=False) or LOAD('default','menu',extension='load',ajax=False)
[web2py] Re: Problems using LOAD function
I need more information here. Set ajax=True. What are the generated URLs (before and after the upgrade). I cannot reproduce the problem. LOAD('default','action') never appended the .load extension. You had to be explicit LOAD('default','action.load') Do you see the problem only with ajax=False? On Jun 1, 2:06 pm, David J. da...@styleflare.com wrote: 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, salbefesalb...@gmail.com 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, inmodule 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
Re: [web2py] Re: Problems using LOAD function
I just upgraded the software to latest in trunk. I did explicitly use '.load'. It still happens. It loads the entire page into the target div. On 6/1/11 3:29 PM, Massimo Di Pierro wrote: I need more information here. Set ajax=True. What are the generated URLs (before and after the upgrade). I cannot reproduce the problem. LOAD('default','action') never appended the .load extension. You had to be explicit LOAD('default','action.load') Do you see the problem only with ajax=False? On Jun 1, 2:06 pm, David J.da...@styleflare.com wrote: 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, salbefesalb...@gmail.comwrote: 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, inmodule 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
[web2py] Re: Problems using LOAD function
Please post the exact code you used {{=LOAD(.)}} the look at the source of the generated page and post that as well. On Jun 1, 2:58 pm, David J. da...@styleflare.com wrote: I just upgraded the software to latest in trunk. I did explicitly use '.load'. It still happens. It loads the entire page into the target div. On 6/1/11 3:29 PM, Massimo Di Pierro wrote: I need more information here. Set ajax=True. What are the generated URLs (before and after the upgrade). I cannot reproduce the problem. LOAD('default','action') never appended the .load extension. You had to be explicit LOAD('default','action.load') Do you see the problem only with ajax=False? On Jun 1, 2:06 pm, David J.da...@styleflare.com wrote: 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, salbefesalb...@gmail.com 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, inmodule 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
Re: [web2py] Re: Problems using LOAD function
a href=javascript:web2py_component('quick_add_contact.load','contact_list') class=buttonQuick Add New Contacts/a On 6/1/11 4:02 PM, Massimo Di Pierro wrote: Please post the exact code you used {{=LOAD(.)}} the look at the source of the generated page and post that as well. On Jun 1, 2:58 pm, David J.da...@styleflare.com wrote: I just upgraded the software to latest in trunk. I did explicitly use '.load'. It still happens. It loads the entire page into the target div. On 6/1/11 3:29 PM, Massimo Di Pierro wrote: I need more information here. Set ajax=True. What are the generated URLs (before and after the upgrade). I cannot reproduce the problem. LOAD('default','action') never appended the .load extension. You had to be explicit LOAD('default','action.load') Do you see the problem only with ajax=False? On Jun 1, 2:06 pm, David J.da...@styleflare.comwrote: 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, salbefesalb...@gmail.com 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, inmodule 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
[web2py] Re: Problems using LOAD function
David and salbefe have different issues. @David web2py_component('quick_add_contact.load','contact_list') should be web2py_component('{{=URL('quick_add_contact.load'}}','contact_list') @salbefe what do you get if you visit this page? http:///init/default/menu My guess is you get a not-authorized error. On Jun 1, 3:16 pm, David J. da...@styleflare.com wrote: a href=javascript:web2py_component('quick_add_contact.load','contact_list') class=buttonQuick Add New Contacts/a On 6/1/11 4:02 PM, Massimo Di Pierro wrote: Please post the exact code you used {{=LOAD(.)}} the look at the source of the generated page and post that as well. On Jun 1, 2:58 pm, David J.da...@styleflare.com wrote: I just upgraded the software to latest in trunk. I did explicitly use '.load'. It still happens. It loads the entire page into the target div. On 6/1/11 3:29 PM, Massimo Di Pierro wrote: I need more information here. Set ajax=True. What are the generated URLs (before and after the upgrade). I cannot reproduce the problem. LOAD('default','action') never appended the .load extension. You had to be explicit LOAD('default','action.load') Do you see the problem only with ajax=False? On Jun 1, 2:06 pm, David J.da...@styleflare.com wrote: 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, salbefesalb...@gmail.com 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, inmodule 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
[web2py] Re: Problems using LOAD function
What happens when you go to http://127.0.0.1/init/default/menu or http://127.0.0.1/init/default/menu.html or http://127.0.0.1 /init/default/menu.load in your browser? Do you have a view menu.html or menu.load? Have you tried LOAD('default','menu.load',ajax=False)
Re: [web2py] Re: Problems using LOAD function
Massimo; Thank you! It seems to have solved my particular issue; @David On 6/1/11 4:48 PM, Massimo Di Pierro wrote: David and salbefe have different issues. @David web2py_component('quick_add_contact.load','contact_list') should be web2py_component('{{=URL('quick_add_contact.load'}}','contact_list') @salbefe what do you get if you visit this page? http:///init/default/menu My guess is you get a not-authorized error. On Jun 1, 3:16 pm, David J.da...@styleflare.com wrote: a href=javascript:web2py_component('quick_add_contact.load','contact_list') class=buttonQuick Add New Contacts/a On 6/1/11 4:02 PM, Massimo Di Pierro wrote: Please post the exact code you used {{=LOAD(.)}} the look at the source of the generated page and post that as well. On Jun 1, 2:58 pm, David J.da...@styleflare.comwrote: I just upgraded the software to latest in trunk. I did explicitly use '.load'. It still happens. It loads the entire page into the target div. On 6/1/11 3:29 PM, Massimo Di Pierro wrote: I need more information here. Set ajax=True. What are the generated URLs (before and after the upgrade). I cannot reproduce the problem. LOAD('default','action') never appended the .load extension. You had to be explicit LOAD('default','action.load') Do you see the problem only with ajax=False? On Jun 1, 2:06 pm, David J.da...@styleflare.com wrote: 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, salbefesalb...@gmail.comwrote: 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, inmodule 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
[web2py] Re: Problems using LOAD function
Massimo, I have solved muy problem. My problem was that I had migrate=False in the table 'menu' on db.py and I was using an older version of the database where such table did not exist. Sorry for the inconveniencie. When I have tried to visit http:///init/default/menu is when I noticed myself. Thanks for all On 1 jun, 22:48, Massimo Di Pierro massimo.dipie...@gmail.com wrote: David and salbefe have different issues. @David web2py_component('quick_add_contact.load','contact_list') should be web2py_component('{{=URL('quick_add_contact.load'}}','contact_list') @salbefe what do you get if you visit this page? http:///init/default/menu My guess is you get a not-authorized error. On Jun 1, 3:16 pm, David J. da...@styleflare.com wrote: a href=javascript:web2py_component('quick_add_contact.load','contact_list') class=buttonQuick Add New Contacts/a On 6/1/11 4:02 PM, Massimo Di Pierro wrote: Please post the exact code you used {{=LOAD(.)}} the look at the source of the generated page and post that as well. On Jun 1, 2:58 pm, David J.da...@styleflare.com wrote: I just upgraded the software to latest in trunk. I did explicitly use '.load'. It still happens. It loads the entire page into the target div. On 6/1/11 3:29 PM, Massimo Di Pierro wrote: I need more information here. Set ajax=True. What are the generated URLs (before and after the upgrade). I cannot reproduce the problem. LOAD('default','action') never appended the .load extension. You had to be explicit LOAD('default','action.load') Do you see the problem only with ajax=False? On Jun 1, 2:06 pm, David J.da...@styleflare.com wrote: 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, salbefesalb...@gmail.com 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, inmodule 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