On Mon, Jun 28, 2010 at 1:14 PM, andrei <[email protected]> wrote: > Django way looks ok, but maybe its simpler to implement with Python > string formatting, adding url argument in controller url="/users/% > {name}d" so generating url would be calling operator % and providing > it with keyword arguments.
Yes. That's how you'd do it without reverse-regexp. I think I've given the example in this topic earlier. This is not rocket science. Just write a simple method (don't forget to do proper validation, though, I skipped that for simplicity) and use that in your template. Regards, -- Branko Vukelić [email protected] [email protected] Check out my blog: http://www.brankovukelic.com/ Check out my portfolio: http://www.flickr.com/photos/foxbunny/ Registered Linux user #438078 (http://counter.li.org/) I hang out on identi.ca: http://identi.ca/foxbunny Gimp Brushmakers Guild http://bit.ly/gbg-group -- You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en.
