Re: How to define metaclass for a class that extends from sqlalchemy declarative base ?

2013-07-02 Thread Peter Otten
Ven wrote: > I use: Python 2.6 and sqlalchemy 0.6.1 > > This is what I am trying to do: > > from sqlalchemy.types import ( > Integer, > String, > Boolean > ) > from sqlalchemy.ext.declarative import declarative_base > > Base = declarative_base() > > class SampleMeta(type): > def __

How to define metaclass for a class that extends from sqlalchemy declarative base ?

2013-07-02 Thread Ven
I use: Python 2.6 and sqlalchemy 0.6.1 This is what I am trying to do: from sqlalchemy.types import ( Integer, String, Boolean ) from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class Sample