Skip to content

Make initialize() pass extra keyword arguments to LDAPObject #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 7, 2019

Conversation

encukou
Copy link
Member

@encukou encukou commented Oct 25, 2018

Fixes: #249

Also, documentation for these should now match the code.

@encukou encukou requested a review from tiran October 25, 2018 14:28
@codecov
Copy link

codecov bot commented Oct 25, 2018

Codecov Report

Merging #250 into master will increase coverage by 12.82%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           master     #250       +/-   ##
===========================================
+ Coverage    58.1%   70.93%   +12.82%     
===========================================
  Files          49       49               
  Lines        5907     4816     -1091     
  Branches      813      812        -1     
===========================================
- Hits         3432     3416       -16     
+ Misses       2157     1066     -1091     
- Partials      318      334       +16
Impacted Files Coverage Δ
Lib/ldap/ldapobject.py 76.38% <ø> (+15.21%) ⬆️
Lib/ldap/functions.py 97.5% <100%> (+42.57%) ⬆️
Lib/ldap/modlist.py 84.61% <0%> (+1.59%) ⬆️
Lib/ldap/asyncsearch.py 28.82% <0%> (+4.4%) ⬆️
Lib/ldap/controls/sessiontrack.py 65.21% <0%> (+5.21%) ⬆️
Lib/ldap/schema/tokenizer.py 97.87% <0%> (+5.87%) ⬆️
Lib/ldap/schema/models.py 71.27% <0%> (+6.66%) ⬆️
Lib/ldap/cidict.py 69.23% <0%> (+7.16%) ⬆️
Lib/ldap/compat.py 66.03% <0%> (+11.35%) ⬆️
Lib/ldap/syncrepl.py 62.29% <0%> (+13.61%) ⬆️
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ec41070...313e79e. Read the comment docs.

@encukou
Copy link
Member Author

encukou commented Jan 3, 2019

@tiran, could you find some time for a review?

@@ -76,7 +76,9 @@ class NO_UNIQUE_ENTRY(ldap.NO_SUCH_OBJECT):

class SimpleLDAPObject:
"""
Drop-in wrapper class around _ldap.LDAPObject
This basic class wraps all methods of the underlying C API object.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also indent the leading and trailing """.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would mean re-indenting the entire class, which is too much for this PR. So I un-indented the contents instead.

(e.g. in Lotus Domino) which drop connections very often making
it impossible to have a long-lasting control flow in the
application.
:py:class:`SimpleLDAPObject` subclass whose synchronous request methods
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also indent the leading and trailing """.

@encukou encukou merged commit 576d5bf into python-ldap:master Jan 7, 2019
@encukou encukou deleted the initialize-kwarg branch January 7, 2019 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants