def get_amplify_subjects(text): registry = getUtility(IRegistry) settings = registry.forInterface(ITagHelperSettingsSchema) api_key = settings.openamplify_api_key results = [] if api_key: amplifyObj = Amplify(api_key) results = amplifyObj.amplify(text) return results
def get_amplify_subjects_remote(url): registry = getUtility(IRegistry) settings = registry.forInterface(ITagHelperSettingsSchema) api_key = settings.amplify_api_key results = [] a_url = 'sourceURL=' + url if api_key: amplifyObj = Amplify(api_key) results = amplifyObj.amplify(a_url) return results
def get_amplify_subjects_remote(url): registry = getUtility(IRegistry) settings = registry.forInterface(ITagHelperSettingsSchema) api_key = settings.amplify_api_key results = [] a_url = "sourceURL=" + url if api_key: amplifyObj = Amplify(api_key) results = amplifyObj.amplify(a_url) return results