Re: [web2py] iframe and pdf

2012-03-10 Thread Martin Weissenboeck
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] > >

Re: [web2py] iframe and pdf

2012-03-09 Thread 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]

[web2py] iframe and pdf

2012-03-09 Thread Martin Weissenboeck
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