[sqlalchemy] Instrumenting an object after the fact

2015-08-07 Thread buchuki
Hi there, I'm trying to do something pretty weird. I have SQLAlchemy instrumented classes that extend a class in addition to Base, like so: class Region(Base, t_Region): __tablename__ = 'region' id = Column( mysql.INTEGER(11), primary_key=True, nullable=False,

[sqlalchemy] Re: Instrumenting an object after the fact

2015-08-07 Thread buchuki
Thanks for the insights! I'll carry on with this and see what I can make happen. I'm not able to introduce a factory pattern at the point Region object is created without monkeypatching an external library. However, I'm now going to explore instrumenting that class using mapper() instead of