akira wrote:
> Ok, I´ll explain again :-) I have to develop a multilingual site, all 
> the content and link are coming from tables that I have separated by 
> language into schemas
> example:
> 
> en.content # table for English content
> de.content # table for German content
> 
> so depending on what the user chooses, the right database would be 
> chosen and consecutively the right data would be displayed, I just do:
> 
> Link.__storm_table__ = session.userlang
> 
> Then I can make queries on the database
> 
> was that clear?

>>> Is this the proper way to do this?

It may be much simpler for you to change the search path at the start of the
transaction by issuing the following statement manually:
   SET search_path = de,public

You can then just refer to 'Content', and know that on that particular
connection you will be accessing the German content.

-- 
Stuart Bishop <[EMAIL PROTECTED]>   http://www.canonical.com/
Canonical Ltd.                                http://www.ubuntu.com/

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
storm mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/storm

Reply via email to