Hi, I'm playing around with SQLAlchemy and generics from user_example.zip from this thread: http://groups.google.com/group/pylons-discuss/browse_thread/thread/b43fe4563c93bbc/3a174f5f1ae968b2?q=sqlalchemy&rnum=1#3a174f5f1ae968b2
with Pylons 0.8, SQLAlchemy 0.1.6 (all last released stable versions) and am having a problem whenever a redirect is passed back after an action, e.g. after a create action: * generic.Modify.new gets called, succesfully enters the data into the databsae, sends back h.redirect_to(action='edit', ...). * browser redirects to edit action * edit action tries to load object, but deep within sqlalchemy.util, ThreadLocal throws an attribute exception because it has no 'engine' attribute. I can reproduce this every time, sometimes it happens when new() tries to objectstore.commit() before the redirect is called, but always happens afterwards during the second action. Has anyone else seen this? I'm using sqlite as the engine, with a database that's created when models/tables.py is imported by models/__init__.py. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss -~----------~----~----~----~------~----~------~--~---
