just make a function in helpers:

def my_url( u ):
   u2= url(u)
   if config['site_url_scheme'] == 'https':
       something
   else:
       somthing

and call h.my_url() wherever you need it

you could even redefine url() and then access the original, but stuff
like that can be a PITA to debug when something goes wrong and you
forget that you did that ( from experience ;) )

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

Reply via email to