faassen at infrae.com
Tue Oct 31 09:21:37 EST 2006
Even though I haven't received feedback yet, I have implemented
view.url() as described at the bottom of my mail yesterday. I'll repeat
it here, slightly updated:
# XXX haven't implemented this at the time of writing.
"""Redirect to given URL"""
def url(obj=None, name=''):
If no arguments given, construct URL to view itself.
If only obj argument is given, construct URL to obj.
If only name is given (or string as first argument, a bit of
magic there), construct view URL to view with that name on our
If both object and name arguments are supplied, construct
view URL to view on that object.
>>> view.url(view.context, 'display')
>>> parent = view.context.__parent__
>>> view.url(parent, 'display')
I'm now going to modify grokwiki to use this API and see what I run into.
More information about the Grok-dev