Beispiel #1
0
    def settings(self):

        if self.settings_json:
            setdict = self.settings_json
        else:
            setdict = {}

        # Load defaults from the module's settings dict
        if self.api:
            modset = get_api(self.api).settings
            for k in modset:
                if not k in setdict:
                    setdict[k] = modset[k]

        return setdict
Beispiel #2
0
 def api_class(self):
     api = get_api(self.api)
     api.settings = self.settings
     return api