Method
getSetting
(self, data, sendResponse=None)
Source from the content-addressed store, hash-verified
| 61 | |
| 62 | #read a key in config.yaml file |
| 63 | def getSetting(self, data, sendResponse=None): |
| 64 | if 'key' in data: |
| 65 | value = settings().get(data['key']) |
| 66 | if sendResponse: |
| 67 | sendResponse(value) |
| 68 | |
| 69 | return value |
| 70 | else: |
| 71 | if sendResponse: |
| 72 | sendResponse('key_setting_error',True) |
| 73 | |
| 74 | return False |
| 75 | |
| 76 | def apiKey(self, sendResponse=None): |
| 77 | if sendResponse: |
Callers
nothing calls this directly
Tested by
no test coverage detected