def image():
    return myimage()

myimage returns the binary data of the image. so calling image would
be the same as calling myimage. The former never calls the view.

Massimo

On Jan 16, 5:44 am, andrej burja <[email protected]> wrote:
> this works
> controller:
> def image():
>     return dict(a=IMG(_src=URL('myimage'+'.png')))
> view:
> {{extend 'layout.html'}}
> <h1>This is the graph/image.html template</h1>
> {{=a}}
>
> but this doesn't
> controller:
> def image():
>     return myimage()
> view:
> {{extend 'layout.html'}}
> <h1>This is the graph/slika1.html template</h1>
> {{=IMG(_src=URL('myimage'+'.png'))}}

Reply via email to