[sqlalchemy] Change __tablename__ at runtime?

2010-07-19 Thread Wade Leftwich
I've been using Sqlalchemy to help migrate a bunch of websites into and out of Drupal. Since a Drupal 'node' can involve fields from 10 or 12 tables, the Declarative approach has been a real timesaver. But now they're thrown me a serious curveball. It turns out that Drupal has a 'multisite' mode,

Re: [sqlalchemy] Change __tablename__ at runtime?

2010-07-19 Thread Michael Bayer
On Jul 19, 2010, at 1:56 PM, Wade Leftwich wrote: I've been using Sqlalchemy to help migrate a bunch of websites into and out of Drupal. Since a Drupal 'node' can involve fields from 10 or 12 tables, the Declarative approach has been a real timesaver. But now they're thrown me a serious