Funny, I just hit send on pretty much the same issue... Uwe
On Wednesday 27 May 2009, shadowfox wrote: > Hi all, > > I have a legacy database that maps pretty much 1-to-1 to TG2's repoze > authentication/authorization structure (User, Group, Permission). > > As the tables are existing ones, I tried to use the SQLAlchemy > reflection to define the model for these tables, that is, inside the > init_model() function in project.model.__init__.py file. > > Problem is, when I specify the model to use in app_cfg.py as such: > > base_config.sa_auth.user_class = model.Users > > The init_model() has not been called yet, thus halting the application > with an object not found error. In fact, I don't see the init_model() > being called anywhere. Is this correct? > > How do I resolve this interdependency? where should I call the > init_model() before the app_cfg.py is being imported? > > Any ideas? > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

