[Zope] anchor tags in python
Troy Farrell
troy@entheossoft.com
Thu, 08 May 2003 13:54:25 -0500
Hi Daniel. I'm not quite sure what you're asking, but I think that a
redirect might do what you want:
context.REQUEST.RESPONSE.redirect(container['birds'].absolute_url() +
'#birdsong')
Daniel Tang wrote:
> Hello,
>
> I was wondering how to pass a page anchor in a python script...
>
>
> My script:
> ----------
> import string
> import types
>
> form=context.REQUEST.form
>
> # do some processing, etc...
>
> # return the birds page at the anchor (how???)
>
> joint = container['birds']
> return joint()
>
>
>
>
>
>
> birds html file:
> ----------------
> <HTML>
> <BODY>
>
> .....
>
>
> <A NAME="birdsong">Bird song</A>
>
> blah blah blah....
>
>
> .....
>
> </HTML>
>
>
>
> I want to have the page center at the "birdsong" in the file... any ideas
> how to do this?
>
> Please include me in the reply, as I am not on this list.
>
> Thanks in advance,
> Daniel