imip-agent

Change of imiptools/client.py

791:7cbf127b2711
imiptools/client.py
     1.1 --- a/imiptools/client.py	Tue Sep 29 14:04:57 2015 +0200
     1.2 +++ b/imiptools/client.py	Tue Sep 29 19:02:01 2015 +0200
     1.3 @@ -74,6 +74,10 @@
     1.4              self.preferences = Preferences(self.user, self.preferences_dir)
     1.5          return self.preferences
     1.6  
     1.7 +    def get_user_attributes(self):
     1.8 +        prefs = self.get_preferences()
     1.9 +        return prefs and prefs.get_all(["CN"]) or {}
    1.10 +
    1.11      def get_tzid(self):
    1.12          prefs = self.get_preferences()
    1.13          return prefs and prefs.get("TZID") or get_default_timezone()