Hi, Hope you are well. I'm having a bit of trouble with something and would love it if someone could please share some of their wisdom with me.
My program uses single table inheritance to store polymorphic objects, one of which is a HttpTest. However, the spanner in the works seems to be that I need my program to process HttpTest objects from two different sources. Most of the HttpTest objects will come from the database in ORM form via SQLA; but then, some other HttpTest objects will be instantiated manually from the program's configuration file parser. The end result is that all the HttpTest objects get added to a 'hosttests' dictionary, which some code uses to iterate over and process them. The processing basically consists of checking some of the HttpTest attributes and then, if necessary, adding them into an event scheduler. The problem I seem to be having, is that when the processing code encounters a HttpTest object that was not created by SQLA (and it tries to access its attributes), I get the following error: File "/usr/local/lib/python2.6/site-packages/SQLAlchemy-0.5.5-py2.6.egg/sqlalchemy/orm/attributes.py", line 158, in __get__ return self.impl.get(instance_state(instance), instance_dict(instance)) AttributeError: 'HttpTest' object has no attribute '_sa_instance_state' I'm not exactly sure what is going on here, but it seems like SQLA is trying to lookup my "config generated" HttpTest object, and fails because SQLA (quite understandable) has no record of it. Does this make sense to anyone? Any help or advice would be greatly appreciated. Thank you in advance for your time and consideration. Kind regards, moggie -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.