On Thu, Jan 21, 2010 at 9:08 AM, laurent FRANCOIS
<[email protected]> wrote:
> On Thu, 2010-01-14 at 05:29 -0800, Kosu wrote:
>> try this:
>> user.__table__.c.keys()
>>
>> should work
>>
>> Kos Rafal
>>
>
>
> AttributeError: 'User' object has no attribute '__table__'
>>> from sqlalchemy import *
>>> metadata = MetaData()
>>> user = Table('user', metadata, Column('name', String))
>>> user.c.keys()
['name']
>>>
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en.