diff --git a/AUTHORS b/AUTHORS index 1c56d9f..e7bee2f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,10 +1,11 @@ Adam Brewer +Cole Stowell Devin Matte Galen Guyer -Cole Stowell Jordan Rodgers Liam Middlebrook Marc Billow Max Meinhold Michael Francis +Tyler Allen William Stevens diff --git a/ChangeLog b/ChangeLog index 5df2e8a..a42d8d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ CHANGES ======= +2.5.1 +----- + +* fix: _get_attr -> __getattr__ + 2.5.0 ----- diff --git a/csh_ldap/member.py b/csh_ldap/member.py index d0cd89d..b359079 100644 --- a/csh_ldap/member.py +++ b/csh_ldap/member.py @@ -59,7 +59,7 @@ def get(self, key): Arguments: key -- the attribute to get the value of """ - return self._get_attr(key, as_list=True) + return self.__getattr__(key, as_list=True) # pylint: disable=unnecessary-dunder-call @reconnect_on_fail def groups(self): @@ -91,7 +91,7 @@ def get_dn(self): return self.__dn__ @reconnect_on_fail - def _get_attr(self, key, as_list=False): + def __getattr__(self, key, as_list=False): res = self.__con__.search_s( self.__dn__, ldap.SCOPE_BASE, diff --git a/setup.cfg b/setup.cfg index 0d7dc58..c28bd01 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,7 +7,7 @@ description = CSH LDAP ORM long_description = file: README.md long_description_content_type = text/markdown license = MIT -version = 2.5.0 +version = 2.5.1 classifier = Natural Language :: English Operating System :: POSIX :: Linux