If you identify the hospital somehow in the domain name, it's easy.
As Massimo suggested, <hospital>.mydomain.com, then
db.define_table('super_secret_hospital_stuff',
Field('something'),
Field('request_tenant', default=request.env.http_host)
...
)
Be sure to add the same request_tenant field to auth_user as well. That
way there's something to match against.
On Wednesday, June 27, 2012 3:48:14 PM UTC-4, Ovidio Marinho wrote:
>
> Procurei isto nas listas todo mundo fala e ninguem esclarece como esta
> coisa funciona com claridade.
>
> I tried that lists everyone talks and no one explains how this thing
> works with clarity.
>
>
>
> Ovidio Marinho Falcao Neto
> Web Developer
> [email protected]
> [email protected]
> ITJP - itjp.net.br
> 83 8826 9088 - Oi
> 83 9334 0266 - Claro
> Brasil
>