This commit is contained in:
Emmanuel Garette 2016-11-21 09:27:43 +01:00
parent 8e3a8e4279
commit db517a8117
1 changed files with 14 additions and 1 deletions

View File

@ -1001,6 +1001,16 @@ class SymLinkOption(OnlyOption):
def impl_is_readonly(self):
return True
def impl_getproperties(self):
return self._impl_getopt()._properties
def impl_get_callback(self):
return self._impl_getopt().impl_get_callback()
def impl_has_callback(self):
"to know if a callback has been defined or not"
return self._impl_getopt().impl_has_callback()
def impl_is_multi(self):
return self._impl_getopt().impl_is_multi()
@ -1020,7 +1030,10 @@ class DynSymLinkOption(object):
self._opt = opt
def __getattr__(self, name, context=undefined):
return getattr(self._impl_getopt(), name)
if name in ('_opt', '_readonly', 'impl_getpath', '_name', '_state_opt'):
return object.__getattr__(self, name)
else:
return getattr(self._impl_getopt(), name)
def impl_getname(self):
return self._name