Skip to content

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

Merged
encukou merged 3 commits into
python-ldap:masterfrom
encukou:initialize-kwarg
Jan 7, 2019
Merged

Make initialize() pass extra keyword arguments to LDAPObject #250
encukou merged 3 commits into
python-ldap:masterfrom
encukou:initialize-kwarg

Conversation

@encukou
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Member Author

encukou commented Jan 3, 2019

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

Comment thread Lib/ldap/ldapobject.py Outdated
class SimpleLDAPObject:
"""
Drop-in wrapper class around _ldap.LDAPObject
This basic class wraps all methods of the underlying C API object.
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread Lib/ldap/ldapobject.py Outdated
(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
Copy Markdown
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