Re: [sqlalchemy] Declarative Class registry ?

2011-03-08 Thread James Mills
[table].add(cls)    return _mapper(cls, table, *arg, **kw) from sqlalchemy.ext.declarative import declarative_base Base = declarative_base(mapper=mapper) Thanks Michael. cheers James -- -- James Mills -- -- Problems are solved by method -- You received this message because you

[sqlalchemy] Declarative Class registry ?

2011-03-07 Thread James Mills
Hello, Given a scenario where you're using declarative_base(...) and defining classes Is there a way to ask SA what the mapper class (declarative) is for a given table by inspecting something in metadata[table_name] ? cheers James -- You received this message because you are subscribed to