{{=XML(idx_page)}}
See http://web2py.com/books/default/chapter/29/05/the-views#XML.
Anthony
On Monday, July 21, 2014 9:58:32 AM UTC-4, David Jobes wrote:
>
> I am trying to call a web page from within a function it works fine,
> except for the fact that it only shows the raw html page and not a the
> rendered page i need, have tried all the urllib2 methods and still not
> luck, here is code, any ideas or sugggestions.
>
> def vrt():
> fup_form =
> FORM(INPUT(_name='title',_type='text'),INPUT(_name='file',_type='file'))
> idx_page= urllib2.urlopen('http://xxx.xxx.xxx.xxx:9090/').read()
> grid = SQLFORM.smartgrid(db.files,onupdate=auth.archive)
> return dict(idx_page=idx_page,grid=grid)
>
>
> the index page
>
> {{extend 'layout.html'}}
> <h2>
> Import and Convert VRT/ET Rules (Beta Conversion)
> </h2>
> <br />
> <p>
> {{=idx_page}}
> </p>
> <br />
> {{=grid}}
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.