mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
56: Fixed Proxy.__call__
This commit is contained in:
parent
277685439c
commit
8865f516df
@ -132,6 +132,7 @@ class Proxy(ReadOnly):
|
||||
"""
|
||||
|
||||
__slots__ = (
|
||||
'__call__',
|
||||
'__obj',
|
||||
'name',
|
||||
)
|
||||
@ -145,6 +146,8 @@ class Proxy(ReadOnly):
|
||||
assert isinstance(proxy_name, str)
|
||||
object.__setattr__(self, '_Proxy__obj', obj)
|
||||
object.__setattr__(self, 'name', proxy_name)
|
||||
if callable(obj):
|
||||
object.__setattr__(self, '__call__', obj.__call__)
|
||||
#for name in self.__slots__:
|
||||
# object.__setattr__(self, name, getattr(obj, name))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user