Wade Leftwich
unread,Jul 19, 2010, 1:56:49 PM7/19/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlalchemy
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, where instead of one `node` table you
have `site1_node`, `site2_node`, etc.
I'm not going to try to do a union of `site1_node` and `site2_node` or
anything like that, but -- given that they have exactly the same
structure, is there any way I can define a Node class and specify the
__tablename__ during runtime?
Any advice appreciated; I'm prepared for the advice to be "Don't go
there".
Wade Leftwich
Ithaca, NY