- attached sqlawtf.py
Problems with overriding attribute in child class
Issue #1488
resolved
Ticket is based on post http://groups.google.com/group/sqlalchemy/browse_thread/thread/5be8ca1088eb9833#
There is a problem with overriding attributes by parent class in its children classes.
It is probably because of dict _mapper_registry in sqlalchemy/orm/mapper.py line 652 which doesn't keep track of class order and sometimes _register_attribute is fired first for children and then for parents.
Comments (6)
-
Account Deleted -
Account Deleted - attached attr_in_child.diff
Suggested patch
-
Account Deleted - attached test_attributes_in_child.py
Nose test cases with buggy behavior
-
repo owner - changed milestone to 0.5.6
wow this looks really great, ill have a look soon.
-
repo owner - changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.5.6 (automated comment)
- Log in to comment
Script from mailing list that exposes bug