diff options
author | Simo Sorce <simo@redhat.com> | 2015-02-22 23:53:33 -0500 |
---|---|---|
committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2015-02-24 16:58:25 +0100 |
commit | 29542bc6407f06edb5bebedc64b84802f1ccb154 (patch) | |
tree | bf3e7c05280043fe4c7d53c5aa9f3b41eb2e0bb4 /ipsilon/info/common.py | |
parent | 76f93f4ed448ebdd0766c627eb63d5c11afb1205 (diff) | |
download | ipsilon-29542bc6407f06edb5bebedc64b84802f1ccb154.tar.gz ipsilon-29542bc6407f06edb5bebedc64b84802f1ccb154.tar.xz ipsilon-29542bc6407f06edb5bebedc64b84802f1ccb154.zip |
Use the new Policy engine for login/info mapping
The InfoMapping class is now only used to prettify the default
set of wellknown attributes.
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'ipsilon/info/common.py')
-rw-r--r-- | ipsilon/info/common.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/ipsilon/info/common.py b/ipsilon/info/common.py index 16a7e29..0a5cb74 100644 --- a/ipsilon/info/common.py +++ b/ipsilon/info/common.py @@ -37,27 +37,12 @@ class InfoMapping(Log): 'language': 'Language', 'timezone': 'Time Zone', } - self.mapping = dict() - - def set_mapping(self, attrs_map): - self.mapping = attrs_map def display_name(self, name): if name in self.standard_attributes: return self.standard_attributes[name] return name - def map_attrs(self, attrs): - s = dict() - e = dict() - for a in attrs: - if a in self.mapping: - s[self.mapping[a]] = attrs[a] - else: - e[a] = attrs[a] - - return s, e - FACILITY = 'info_config' |