If I have a function as follows in default.py

def test():
    redirect("url of some web page")

Then

app/default/test does open up the web page as if it was entered in the
url bar  of the browser.

If the function is

def test():
        import urllib
        url="url of some web page"
        f = urllib.urlopen(url)
        s = f.read()
        return s

Then it does kind of redirect, but it is no longer connected to the
session, and the defaults in the html are no longer correct.

Is it possible to alter the routine above to have the same
functionality as redirect?

The reason I want to be able to do this is that I want to edit s. So I
want to do a redirect, but with slightly edited html.

Any ideas
Thanks
Peter






Reply via email to