Hi, I'd like to rewrite my app using pylons but I've noticed the problem at very beginning.
I offer some stuff for users and use subdomains to do so. So www.mysite.com is main page of the site, and user.mysite.com is a user specyfic page (eg. blog or something). And my questions is how to map this using routes? One possible solution is to rewrite URLs at web server level from xxx.mysite.com/ to mysite.com/xxx/ and map it with routes. It's ok, but I've got 2 questions. First, how can I write a middleware or something to make this rewrite at pylons level? Second, what to do not to break helpers like url_for() and link_to()? I could just write a new version of url_for and substitute it, but I don't know how to get into python mechanizm... Is there such system in pylons like in ruby on rails so I can just write plugin which will do URL rewrite before mapping and which will add something like decorator to url_for? I can't find any documentation on how to this... Thanks for any help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
