Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Adam Brewer <[email protected]>
Cole Stowell <[email protected]>
Devin Matte <[email protected]>
Galen Guyer <[email protected]>
Cole Stowell <[email protected]>
Jordan Rodgers <[email protected]>
Liam Middlebrook <[email protected]>
Marc Billow <[email protected]>
Max Meinhold <[email protected]>
Michael Francis <[email protected]>
Tyler Allen <[email protected]>
William Stevens <[email protected]>
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGES
=======

2.5.1
-----

* fix: _get_attr -> __getattr__

2.5.0
-----

Expand Down
4 changes: 2 additions & 2 deletions csh_ldap/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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