diff options
author | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-05-02 17:41:56 +0000 |
---|---|---|
committer | Bogdano Arendartchuk <bogdano@mandriva.org> | 2007-05-02 17:41:56 +0000 |
commit | f76255fe3a7466748de56b422c048039ea59b077 (patch) | |
tree | f6db4aa336bc714374eb68081be0590c8ce6e720 /RepSys/ConfigParser.py | |
parent | 0b5ebe2e1b3becfd57c15dc3d585ffcd22b47076 (diff) | |
download | mgarepo-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.py | 4 |
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 |