I don't now about before (I don't have much experience) but the book
specifies not to pass current at module level, only in functions.
Thanks for the hint anyway. :)
On Tuesday, March 14, 2017 at 9:40:36 PM UTC+1, Richard wrote:
>
>
> http://web2py.com/books/default/chapter/29/04/the-core#Shari
http://web2py.com/books/default/chapter/29/04/the-core#Sharing-the-global-scope-with-modules-using-the-current-object
current.request, response, etc
On Tue, Mar 14, 2017 at 4:40 PM, Richard Vézina wrote:
> You can pass T() to module or use current.T(), I think the later is the
> proper way to d
You can pass T() to module or use current.T(), I think the later is the
proper way to do now as current wasn't existing before we had to pass
request, T(), etc...
http://web2py.com/books/default/chapter/29/04/the-core#API
"Other objects and modules are defined in the libraries, but they are not
a
Actually it comes from T, the issue remains even with no xml() or XML
involved.
Sorry but I reduced the function to the wrong line : I had a T = current.T
at the beginning of get_dashboard() which
deletion didn't suppress the issue.
It seems that an involuntary (my bad) spelling of the returned
So the problem is from .xml() than??
Richard
On Mon, Mar 13, 2017 at 6:20 PM, Anthony wrote:
> No, DIV is in gluon.html.
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/is
No, DIV is in gluon.html.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2
I think you want to import from sqlhtml :
Try like this :
from gluon.sqlhtml import *
Richard
On Mon, Mar 13, 2017 at 11:56 AM, Lars wrote:
> Hi,
>
> I have this small code in the dashboard module:
>
> from gluon.html import DIV
> def get_dashboard():
> return DIV(
> DIV('Lorat ip
Hi,
I have this small code in the dashboard module:
from gluon.html import DIV
def get_dashboard():
return DIV(
DIV('Lorat ipsum etc', _class='dashboard alert'),
_class='center-box').xml()
and this one in default.py :
def index():
from modelling.dashboard import get_dash
8 matches
Mail list logo