Re: [web2py] basic views question

2010-12-14 Thread Lorin Rivers
Thanks, I got it now. On Dec 14, 2010, at 14:10 , Bruno Rocha wrote: > so, you need views inside /views/reports/.html > > 2010/12/14 Lorin Rivers > >> No, it's in reports.py, a controller. >> >> On Dec 14, 2010, at 13:37 , Bruno Rocha wrote: >> >>> if def test() is defined inside default

Re: [web2py] basic views question

2010-12-14 Thread Bruno Rocha
so, you need views inside /views/reports/.html 2010/12/14 Lorin Rivers > No, it's in reports.py, a controller. > > On Dec 14, 2010, at 13:37 , Bruno Rocha wrote: > > > if def test() is defined inside default.py, the test.html should be in > > /views/default/test.html > > > > 2010/12/14 Lorin

Re: [web2py] basic views question

2010-12-14 Thread Bruno Rocha
if your controller is named 'reports.py', you need this tree: ../views/reports/test.html 2010/12/14 Bruno Rocha > if def test() is defined inside default.py, the test.html should be in > /views/default/test.html > > 2010/12/14 Lorin Rivers > > I have an app "Debug", a controller "reports.py",

Re: [web2py] basic views question

2010-12-14 Thread Lorin Rivers
No, it's in reports.py, a controller. On Dec 14, 2010, at 13:37 , Bruno Rocha wrote: > if def test() is defined inside default.py, the test.html should be in > /views/default/test.html > > 2010/12/14 Lorin Rivers > >> I have an app "Debug", a controller "reports.py", functions in that >> contr

Re: [web2py] basic views question

2010-12-14 Thread Bruno Rocha
if def test() is defined inside default.py, the test.html should be in /views/default/test.html 2010/12/14 Lorin Rivers > I have an app "Debug", a controller "reports.py", functions in that > controller "index" and "test" (plus a bunch of others). > > def index(): return dict(message="reports i

[web2py] basic views question

2010-12-14 Thread Lorin Rivers
I have an app "Debug", a controller "reports.py", functions in that controller "index" and "test" (plus a bunch of others). def index(): return dict(message="reports index") def test(): return dict(message="hello from reports.py") In the directory structure ../views: appadmin.html /def