On Thu, Apr 21, 2011 at 10:36 PM, Juparave <[email protected]> wrote: > I've been looking/waiting for a simple way to have a second database > running on my app. But there's a catch, I want the second DB to be > selected upon the domain name. i.e. >
I had to do a similar thing to make multiple domains/web sites run inside only one ACRCms instance, you can take a look at it https://bitbucket.org/_amol_/acrcms/src/243cfcaa48c4/acr_cms/acr/lib/multisite.py How it can be used can be seen here for the authenticator: https://bitbucket.org/_amol_/acrcms/src/243cfcaa48c4/acr_cms/acr/config/app_cfg.py and here for the model engine: https://bitbucket.org/_amol_/acrcms/src/243cfcaa48c4/acr_cms/acr/model/__init__.py I had to implement also an authenticator as otherwise repoze would end getting all the users informations from the first database instead of querying them based upon the domain/site instance. -- 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.

