create your own url_for function in helpers, and just wrap url_for
with it.

ie:

lib/helpers
def custom_url_for( name ):
      domain = getDomain
      if domain == 'a':
         return '%s/%s' % ( url_for(name) , 'a' )
      elif domain == 'b':
         return '%s/%s' % ( url_for(name) , 'b' )
      else:
          raise ValueError('[EMAIL PROTECTED]@#!')
--~--~---------~--~----~------------~-------~--~----~
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