aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/ConfigParser.py
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2007-05-02 17:41:56 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2007-05-02 17:41:56 +0000
commitf76255fe3a7466748de56b422c048039ea59b077 (patch)
treef6db4aa336bc714374eb68081be0590c8ce6e720 /RepSys/ConfigParser.py
parent0b5ebe2e1b3becfd57c15dc3d585ffcd22b47076 (diff)
downloadmgarepo-f76255fe3a7466748de56b422c048039ea59b077.tar
mgarepo-f76255fe3a7466748de56b422c048039ea59b077.tar.gz
mgarepo-f76255fe3a7466748de56b422c048039ea59b077.tar.bz2
mgarepo-f76255fe3a7466748de56b422c048039ea59b077.tar.xz
mgarepo-f76255fe3a7466748de56b422c048039ea59b077.zip
Introduced the plugin "ldapusers".
This plugin allows to obtain the user names and e-mails from a LDAP server. See repsys --help-plugin ldapusers for the configuration options. This plugin also required one small change in the ConfigParser: the class Config should allow one to get one option value in "raw" format, so that python format strings can be used as configuration values.
Diffstat (limited to 'RepSys/ConfigParser.py')
-rw-r--r--RepSys/ConfigParser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/RepSys/ConfigParser.py b/RepSys/ConfigParser.py
index d995a57..4dc3e3c 100644
--- a/RepSys/ConfigParser.py
+++ b/RepSys/ConfigParser.py
@@ -388,14 +388,14 @@ class Config:
return handler(section, option, walk=True)
return self._config.walk(section, option, raw, vars)
- def get(self, section, option, default=None, wrap=True):
+ def get(self, section, option, default=None, raw=False, wrap=True):
if wrap:
handler = self._wrapped.get(section)
if handler:
handler = self._wrapped.get(section)
return handler(section, option, default)
try:
- return self._config.get(section, option)
+ return self._config.get(section, option, raw=raw)
except Error:
return default