Fix parent attribute lookup to be default

Fixes #12526
This commit is contained in:
James Cammarata
2015-09-26 11:11:55 -04:00
parent a1c38a3fda
commit 6dd38c2a10
3 changed files with 64 additions and 50 deletions

View File

@@ -105,7 +105,10 @@ class Base:
if hasattr(self, method):
return getattr(self, method)()
return self._attributes[prop_name]
value = self._attributes[prop_name]
if value is None and hasattr(self, '_get_parent_attribute'):
value = self._get_parent_attribute(prop_name)
return value
@staticmethod
def _generic_s(prop_name, self, value):