Hi guys, I am trying tg2 and I've come across an issue when trying to reflect a table for my model. So I quickstarted my app, and followed the instructions at http://wiki.pylonshq.com/display/pylonscookbook/SQLAlchemy+0.4+for+people+in+a+hurry
However, when the model.__init__.py tries to get config['pylons.g'].sa_engine, it crashes: "AttributeError: 'NoneType' object has no attribute 'sa_engine'" So it looks that the config is not loaded when the model is imported. I tried doing the reflection with a new Pylons (trunk) app and I was able to do it. However, the code inside environment.py and model.__init__.py is different, and I didn't need to get sa_engine to make it work. Am I missing something? Have any of you guys got sqlalchemy's reflection working? Thanks in advance :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
