On Sat, Jun 21, 2008 at 7:53 AM, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > i had a similar situation -- i wanted to change url_for's output on > people who have a 'preview' cookie and those who don't > > i basically did this > > def url_for_custom( url ): > rval = url_for(url) > if logic_test(): > rval = regex or stringsub or both > return rval > > then quickly did a find/replace on the entire pylons app with url_for - >> url_for_custom > > its ridiculously not messy, simple, and gets the job done.
url_for comes from webhelpers. Can't you just hijack it there and reuse the same name? -jj -- It's a walled garden, but the flowers sure are lovely! http://jjinux.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
