>From reading through the url function (which is implicitly called by
redirect) there is no way of telling redirect to go to a named anchor.
I have to hack in the ability using my own redirect function defined
like so:

def redirect(redirect_path, anchor=None, **kw):
    name = ""
    if anchor is not None:
        name = '#' + urllib.quote(anchor)
    path = turbogears.url(redirect_path, **kw) + name
    turbogears.redirect(path)

Is there something inherently wrong with this? This doesn't seem like
something I would run into for the first time.

Thanks,
Brian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to