[Zope] how can I dynamically bring in external page

Pavlos Christoforou pavlos@gaaros.com
Mon, 28 Feb 2000 10:29:00 -0500 (EST)


Hi Andy -

I am not usre what you by dynamic and not pasting. I suppose you need a
method to automatically retrieve an HTML page from a server. An external
method might be appropriate (untested):


import urllib
try:
  content=urllib.urlopen(URL) 
except:
  return "Not available"

return content


URL can be acquired or passed as an argument to your external method ...

Regards

Pavlos

On Mon, 28 Feb 2000, Andy Heath wrote:
                                                                              
> What I want to do is have a page served by zope
> which is in fact on another non Zope server but
> to do this dynamically with dynamic pages,
> not just by pasting the html.
> 
> The actual pages I want to bring in are HyperNews
> discussion pages.  Best of all would be able to
> serve a HyperNews discussion page as part of a
> table.
> 
> All advice welcome.
> 
> Andy
> 
> -- 
> -------------------------------------------------
> Andy Heath                    a.k.heath@open.ac.uk
> The Open University           +44 (0) 114 2885738
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>