[Zope] anchor tags in python
Paul Winkler
pw_lists@slinkp.com
Thu, 8 May 2003 10:41:53 -0400
On Thu, May 08, 2003 at 02:30:31PM -0400, 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()
why call it? you could redirect instead.
e.g.
response = context.REQUEST.RESPONSE
anchor_name = 'bird_song' # or this could be dynamically generated
response.redirect('%s#%s' % (container['birds'].absolute_url(), anchor_name))
--
Paul Winkler
home: http://www.slinkp.com
"Muppet Labs, where the future is made - today!"