Re: [web2py] Re: LOAD without div (internal redirect)

2016-07-05 Thread Facundo Médica
Looks good for me! I'll try it out! Thank you! 2016-07-05 13:57 GMT-03:00 Anthony : > mypage = LOAD('mycontroller', 'myfunction', ajax=False)[0][0] > > LOAD(..., ajax=False) returns TAG[''](DIV(XML(page), **attr), script), so > the above indexing extracts the XML(page) element, where "page" is th

[web2py] "name is not defined" when compiling

2015-09-27 Thread Facundo Médica
Here is the error: Exception: name 'layout' is not defined in default/index.html The problem might be that I define which layout use in the view from the controller. So in the controller I return the variable *layout* which can be "layout1.html" or "layout2.html". So in the view I have: {{exte

[web2py] Installing Web2Py in a directory

2015-07-14 Thread Facundo Médica
I've already installed Web2Py and have it working. Now I want to install it into a directory. The problem: I have other files in the root directory of the domain, called "/var/www/somedomain.com/public_html/". Because Web2Py is installed I can't access those files (phps, images, other directori