Mercurial > libervia-backend
comparison src/memory/params.py @ 1023:8bae81e254a2
core: added a getReady method which can be called by frontends to ensure that backend is fully initialised before doing anything + this ckeck is automatically done in asyncConnect
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 15 May 2014 16:02:16 +0200 |
parents | 6a16ec17a458 |
children | 15f43b54d697 |
comparison
equal
deleted
inserted
replaced
1022:002ee8397208 | 1023:8bae81e254a2 |
---|---|
185 elif profile_key == C.PROF_KEY_NONE: | 185 elif profile_key == C.PROF_KEY_NONE: |
186 raise exceptions.ProfileNotSetError | 186 raise exceptions.ProfileNotSetError |
187 elif return_profile_keys and profile_key in ["@ALL@"]: | 187 elif return_profile_keys and profile_key in ["@ALL@"]: |
188 return profile_key # this value must be managed by the caller | 188 return profile_key # this value must be managed by the caller |
189 if not self.storage.hasProfile(profile_key): | 189 if not self.storage.hasProfile(profile_key): |
190 log.info(_('Trying to access an unknown profile')) | 190 log.error(_('Trying to access an unknown profile')) |
191 return "" # FIXME: raise exceptions.ProfileUnknownError here (must be well checked, this method is used in lot of places) | 191 return "" # FIXME: raise exceptions.ProfileUnknownError here (must be well checked, this method is used in lot of places) |
192 return profile_key | 192 return profile_key |
193 | 193 |
194 def __get_unique_node(self, parent, tag, name): | 194 def __get_unique_node(self, parent, tag, name): |
195 """return node with given tag | 195 """return node with given tag |