Nice solution - thank you!
Martin
2012/3/10 Bruno Rocha
>
> def k():
> if 'showpdf' in request.args:
> return person2pdf(session.ids)
> else:
> return dict(ifr=IFRAME(_src=URL('default','k', args='showpdf')))
>
>
>
> --
>
> Bruno Rocha
> [http://rochacbruno.com.br]
>
>
def k():
if 'showpdf' in request.args:
return person2pdf(session.ids)
else:
return dict(ifr=IFRAME(_src=URL('default','k', args='showpdf')))
--
Bruno Rocha
[http://rochacbruno.com.br]
I have a function person2pdf, which creates a pdf-sheet. I want to show
this sheet in an iframe (or an object) inside a webpage. The following code
works well, but I wonder how to do the same without function k1?
def k1():
return person2pdf(session.ids)
def k():
return dict(ifr=IFRAME(_s
3 matches
Mail list logo