From 29542bc6407f06edb5bebedc64b84802f1ccb154 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 22 Feb 2015 23:53:33 -0500 Subject: 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 Reviewed-by: Patrick Uiterwijk --- ipsilon/info/common.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'ipsilon/info/common.py') 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' -- cgit