def gsheets(): org_name = get_current_org() factory = myservice().services(org_name) return factory.gsheets()
def _get_objstore_colln(): org_name = get_current_org() return myservice().colln(org_name)
def _get_registry_colln(): return myservice().get_registry_colln(get_current_org())
def push_environ_to_g(): from flask import g g.current_org_name = get_current_org() g.token_resolver_endpoint = _get_token_resolver_endpoint()
def push_environ_to_g(): from flask import g g.registry_colln = _get_registry_colln() g.registry_resource_id = _get_registry_resource_id() g.current_org_name = get_current_org() g.token_resolver_endpoint = _get_token_resolver_endpoint()
def _get_registry_resource_id(): return myservice().get_registry_resource_id(get_current_org())
def resource_dir_path(resource_id): org_name = get_current_org() return myservice().resource_dir_path(org_name, resource_id)
def resource_file_path(resource_id, file_path_in_resource_scope): org_name = get_current_org() return myservice().resource_file_path(org_name, resource_id, file_path_in_resource_scope)
def creds_dict(): credentials_dict = json.load( open(myservice().creds_path(get_current_org()))) return credentials_dict