so, you need views inside /views/reports/____.html

2010/12/14 Lorin Rivers <lriv...@mosasaur.com>

> 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 <lriv...@mosasaur.com>
> >
> >> 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
> >> /default:
> >>   display_debug_form.html
> >>   index.html
> >> generic.csv
> >> generic.html
> >> layout.html
> >> test.html
> >> web2py_ajax.html
> >>
> >> When I go to ../Debug/reports/test.html
> >>
> >> I get the generic.html view instead of test.html
> >>
> >> Contents of test.html:
> >>
> >>
> {{response.files.append(URL(r=request,c='static/stylesheets',f='styles.css'))}}
> >> {{extend 'layout.html'}}
> >>
> >> What's up?
> >> --
> >> Lorin Rivers
> >> Mosasaur: Killer Technical Marketing <http://www.mosasaur.com>
> >> <mailto:lriv...@mosasaur.com>
> >> 512/203.3198 (m)
> >>
> >>
> >>
> >
> >
> > --
> >
> > Bruno Rocha
> > http://about.me/rochacbruno/bio
>
> --
> Lorin Rivers
> Mosasaur: Killer Technical Marketing <http://www.mosasaur.com>
> <mailto:lriv...@mosasaur.com>
> 512/203.3198 (m)
>
>
>


-- 

Bruno Rocha
http://about.me/rochacbruno/bio

Reply via email to