Пример #1
0
    def __init__(self, params=None):
        BaseConfigData.__init__(self, params)

        # 1. User-defined bookmarks
        self.bookmarks = BookmarkList()

        # 99. Identities
        self.identities = []
        self.current_identity = -1
        # Store current identity as default one
        self.CreateIdentity()
        self.StoreCurrentIdentity()
Пример #2
0
    def __init__(self, params=None):
        BaseConfigData.__init__(self, params)

        # 1. User-defined bookmarks
        self.bookmarks = BookmarkList()

        # Override languages
        lang_code = wx.Locale.GetLanguageInfo(wx.Locale.GetSystemLanguage()).CanonicalName
        if lang_code:
            self.languages = [str(lang_code.split("_")[0])]

        # 99. Identities
        self.identities = []
        self.current_identity = -1
        # Store current identity as default one
        self.CreateIdentity()
        self.StoreCurrentIdentity()
Пример #3
0
 def __init__(self, params=None):
     BaseConfigData.__init__(self, params)
     self.used_services = params and params.services or []
Пример #4
0
 def _Load(self, infile):
     """
     Restore configuration from a readable file object.
     """
     BaseConfigData._Load(self, infile)
     self.StoreCurrentIdentity()