So, I'm trying to figure out specifically how to do the following:
- Support multiple subdomains that map to URLs like:
area1.domain.com maps to www.domain.com/area1/mymethodname/myparams
area2.domain.com maps to www.domain.com/area2/mymethodname/myparams

etc... I figure I can use some fancy Apache and DNS tricks to do the  
mapping.. however, what I need to do in TurboGears is to be able to  
evaluate the "area1" chunk of the URL as a parameter, and be able to  
call a controller as normal as if "areax" wasn't in the URL.

In other words, if I have a controller that has:

Class Root(controllers.RootController):
  ...
     def index(...):
         #root handler here

     def method1(...):
        #code for method 1 here

how can I have these methods be called with a URL like the ones above  
with the segment "area1, area2, etc" be evaluated as kwargs?

In other words, I would like to be able to have htttp:// 
www.domain.com/area1/mymethodname behave like http://www.domain.com/ 
mymethodname/area1


Basically, I am thinking I need to be able to have a root controller  
instantiate a new controller for a give "area" and act as though it  
were in the root.

thoughts?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to