Skip to content

In SlapdObject, build include directives dynamically #196

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 1 commit into from
Mar 27, 2018
Merged

In SlapdObject, build include directives dynamically #196

merged 1 commit into from
Mar 27, 2018

Conversation

jdufresne
Copy link
Member

Allows overriding openldap_schema_files without requiring rewriting the conf file.

@@ -330,6 +331,12 @@ def gen_config(self):
}
return self.slapd_conf_template % config_dict

def _include_directives(self):
Copy link
Member

Choose a reason for hiding this comment

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

There is no need for an extra function. Instead of a new function, simply create a variable in the gen_config method and use it as 'include_directives': include_directives,.

Allows overriding openldap_schema_files without requiring rewriting the
conf file.
@codecov
Copy link

codecov bot commented Mar 26, 2018

Codecov Report

Merging #196 into master will decrease coverage by 2.8%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #196      +/-   ##
==========================================
- Coverage   70.25%   67.45%   -2.81%     
==========================================
  Files          49       49              
  Lines        4811     4799      -12     
  Branches      810      809       -1     
==========================================
- Hits         3380     3237     -143     
- Misses       1098     1215     +117     
- Partials      333      347      +14
Impacted Files Coverage Δ
Lib/slapdtest/_slapdtest.py 75% <100%> (-7.66%) ⬇️
Lib/ldap/compat.py 18.86% <0%> (-47.17%) ⬇️
Lib/ldap/functions.py 80% <0%> (-17.5%) ⬇️
Lib/ldap/__init__.py 83.01% <0%> (-16.99%) ⬇️
Lib/ldap/ldapobject.py 60.71% <0%> (-13.7%) ⬇️
Lib/ldap/sasl.py 75% <0%> (-11.12%) ⬇️
Modules/ldapmodule.c 59.09% <0%> (-4.91%) ⬇️
Lib/ldap/dn.py 90.38% <0%> (-3.85%) ⬇️
Lib/ldap/schema/models.py 70.71% <0%> (-0.36%) ⬇️
... and 2 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 fd0ec90...95562e5. Read the comment docs.

@jdufresne
Copy link
Member Author

Thanks for the review. I've made the suggested change.

@encukou encukou merged commit adc40d0 into python-ldap:master Mar 27, 2018
@jdufresne jdufresne deleted the includes branch March 30, 2018 12:51
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.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy