Btw, if you run into trouble with inheritance, there seems to be
something broken. The quick & dirty fix below works for me:
Index: lib/sqlalchemy/attributes.py
===================================================================
--- lib/sqlalchemy/attributes.py (revision 1775)
+++ lib/sqlalchemy/attributes.py (working copy)
@@ -635,7 +635,10 @@
def reset_class_managed(self, class_):
"""removes all InstrumentedAttribute property objects from the
given class."""
for attr in self.managed_attributes(class_):
- delattr(class_, attr.key)
+ try:
+ delattr(class_, attr.key)
+ except:
+ pass
def is_class_managed(self, class_, key):
"""returns True if the given key correponds to an instrumented
property on the given class."""
I did not do any debugging, I just always got an exception and caught
it here. Ugly, but works. Is there a place to file a bug report for
this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---