Am 20.07.2010 um 03:39 schrieb Enrico:

On retesting, it seems that the tables defined in SA declarative style
are auto-created but the Elixir is not. So maybe I need another
metadata2 bound to Elixir with something like
model
.metadata.create_all(bind=config['pylons.app_globals'].elixir_engine)

You need to use the same metadata for elixir & declarative. Elixir by default uses

  elixir.metadata

You can make that the overall metadata used. Or you can define an explicit one, and pass that to elixir entities on declaration. Or you can use __metadata__ on module level when declaring entities. And I'm sure there are other ways.

But that's the essence. Share the metadata.

Diez

--
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.

Reply via email to