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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---