Gustavo Noronha Silva schrieb:
> I got from a paste in the paste bin by Christopher Arndt:
> def setUp(self):
> # bind metadata/engine to model
> database.bind_meta_data()
> # create all model tables
> for item in dir(self.model):
> item = getattr(self.model, item)
> if isinstance(item, sqlalchemy.Table):
> item.create(checkfirst=True)
I realized since then, that this can probably be shortened to
# bind metadata/engine to model
db.bind_meta_data()
# create all model tables
db.metadata.create_all()
Can you try you code again with this modification?
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---