remove pep8 validation errors

This commit is contained in:
2015-07-24 17:54:10 +02:00
parent 6cc74506fb
commit 44cd618704
37 changed files with 146 additions and 346 deletions

View File

@ -302,6 +302,10 @@ class OptionDescription(BaseOption, StorageOptionDescription):
def __getattr__(self, name, context=undefined):
if name.startswith('_'): # or name.startswith('impl_'):
return object.__getattribute__(self, name)
if '.' in name:
path = name.split('.')[0]
subpath = '.'.join(name.split('.')[1:])
return self.__getattr__(path, context=context).__getattr__(subpath, context=context)
return self._getattr(name, context=context)