jo wrote:
>Florent Aide ha scritto:
>
>
>>On 10/15/07, jo <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>>Hi,
>>>
>>>
>>>
>>Hi Jose,
>>
>>
>>
>>
>>>database.bind_meta_data()
>>>session = database.session
>>>engine = database.metadata.engine
>>>import pdb;pdb.set_trace()
>>>
>>>
>>>
>>Humm, I am not working on 1.0.4 database right now but could you try
>>this to get the engine:
>>
>>database.bind_meta_data()
>>engine = database.metadata.bind
>>
>>Please tell us if it works...
>>
>>
>>
>
>now I have another error:
>
>for name,schemaname in engine.execute("SELECT tablename,schemaname FROM
>pg_tables").fetchall():
> if not schemaname in ('information_schema','pg_catalog'):
> tbl[name] = Table(name, database.metadata, autoload=True)
>
>sqlalchemy.exceptions.InvalidRequestError: This SchemaItem is not
>connected to any Engine
>
>
>
the error was solved by changing the line as:
tbl[name] = Table(name, engine, autoload=True)
--------
thanks to Florent.
jo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---