Hi,

I get following error when I include this in my default index view:

Traceback (most recent call last):
  File "/Users/webdev/web2py/gluon/restricted.py", line 181, in
restricted
    exec ccode in environment
  File "/Users/webdev/web2py/applications/test/views/default/
index.html", line 117, in <module>
TypeError: 'NoneType' object is not callable
Frames
File /Users/webdev/web2py/gluon/restricted.py in restricted at line
181


File /Users/webdev/web2py/applications/test/views/default/index.html
in <module> at line 117
code

    response.write('</li>\n  <li>', escape=False)
    response.write(T('You can modify this application and adapt it to
your needs'))
    response.write('</li>\n  <li>', escape=False)
    response.write(A(B(T("click here for the administrative
interface")), _href=URL('admin','default','index')))
    response.write('</li>\n  <li>', escape=False)
    response.write(A(T("click here for online examples"),
_href=URL('examples','default','index')))
    response.write('</li>\n  <li><a href="http://
web2py.com">web2py.com</a></li>\n  <li><a href="http://web2py.com/
book">', escape=False)
    response.write(T('documentation'))
    response.write('</a></li>\n</ul>\n', escape=False)
    response.write(response.toolbar(request))

    response.write('\n<ol>\n  <li>', escape=False)
    response.write(T('You visited the url'))
    response.write(' ', escape=False)
 
response.write(A(request.env.path_info,_href=request.env.path_info))
    response.write('</li>\n  <li>', escape=False)
    response.write(T('Which called the function'))
    response.write(' ', escape=False)
    response.write(A(request.function+'()',_href='#'))
    response.write(' ', escape=False)
    response.write(T('located in the file'))

Johan


On May 30, 7:54 am, Massimo Di Pierro <[email protected]>
wrote:
> We can make this better in two ways...
>
> 1) make it display its own stylesheet and display as a slide-in/out
> panel.
> 2) have it read the options.profiler file and extract all the profiler
> info
>
> 1) requires simply a good css designer.
> 2) requires a little more work to parse the profiler log and extract
> the corresponding entry.
>
> On May 30, 12:36 am, "Jason (spot) Brower" <[email protected]>
> wrote:
>
>
>
>
>
>
>
> > YEAH!!!!!
> > Your Increadable!!
> > ---
> > BR,
> > Jason
>
> > On Mon, May 30, 2011 at 3:16 AM, Massimo Di Pierro <
>
> > [email protected]> wrote:
> > > This is in trunk. Give it a try:
>
> > > {{=response.toolbar()}}
>
> > > display request,response, session and db stats.

Reply via email to