comparison src/memory/memory.py @ 1534:a5e0393a06cd

plugin ip, params: plugin IP discovery, first draft: - a dedicated plugin now manage IP discovery, for now it uses external website, but it should implement XEP-0279 soon - a permission is requested to user for calling an external website. Once the permission is granted (it's global), it is not asked anymore. - the ip is discovered on demand, and cache is kept for the session. - memory.params.getParamA has a new parameter use_default, which allow to get None when a parameter is not set, instead of the default value. This allow to detected when we need to do the first permission request. memory.getParamA don't have this parameter.
author Goffi <goffi@goffi.org>
date Tue, 29 Sep 2015 17:54:22 +0200
parents fbe86b5d156f
children 42285d993e68
comparison
equal deleted inserted replaced
1533:d749922300d0 1534:a5e0393a06cd
851 851
852 def getStringParamA(self, name, category, attr="value", profile_key=C.PROF_KEY_NONE): 852 def getStringParamA(self, name, category, attr="value", profile_key=C.PROF_KEY_NONE):
853 return self.params.getStringParamA(name, category, attr, profile_key) 853 return self.params.getStringParamA(name, category, attr, profile_key)
854 854
855 def getParamA(self, name, category, attr="value", profile_key=C.PROF_KEY_NONE): 855 def getParamA(self, name, category, attr="value", profile_key=C.PROF_KEY_NONE):
856 return self.params.getParamA(name, category, attr, profile_key) 856 return self.params.getParamA(name, category, attr, profile_key=profile_key)
857 857
858 def asyncGetParamA(self, name, category, attr="value", security_limit=C.NO_SECURITY_LIMIT, profile_key=C.PROF_KEY_NONE): 858 def asyncGetParamA(self, name, category, attr="value", security_limit=C.NO_SECURITY_LIMIT, profile_key=C.PROF_KEY_NONE):
859 return self.params.asyncGetParamA(name, category, attr, security_limit, profile_key) 859 return self.params.asyncGetParamA(name, category, attr, security_limit, profile_key)
860 860
861 def asyncGetStringParamA(self, name, category, attr="value", security_limit=C.NO_SECURITY_LIMIT, profile_key=C.PROF_KEY_NONE): 861 def asyncGetStringParamA(self, name, category, attr="value", security_limit=C.NO_SECURITY_LIMIT, profile_key=C.PROF_KEY_NONE):