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__'
thanks anyway
On 14 Sty, 11:39, laurent FRANCOIS lau.franc...@worldonline.fr
wrote:
Hello everybody
Let's say
On Thu, Jan 21, 2010 at 9:08 AM, laurent FRANCOIS
lau.franc...@worldonline.fr 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 =
try this:
user.__table__.c.keys()
should work
Kos Rafal
On 14 Sty, 11:39, laurent FRANCOIS lau.franc...@worldonline.fr
wrote:
Hello everybody
Let's say I have a
table_user= Table('user', blablabla...)
class User(object): pass
mapper(User, table-user)
Let's say I have an ORM object: