예제 #1
0
def gsheets():
    org_name = get_current_org()
    factory = myservice().services(org_name)
    return factory.gsheets()
예제 #2
0
def _get_objstore_colln():
    org_name = get_current_org()
    return myservice().colln(org_name)
예제 #3
0
def _get_registry_colln():
    return myservice().get_registry_colln(get_current_org())
예제 #4
0
def push_environ_to_g():
    from flask import g
    g.current_org_name = get_current_org()
    g.token_resolver_endpoint = _get_token_resolver_endpoint()
예제 #5
0
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()
예제 #6
0
def _get_registry_resource_id():
    return myservice().get_registry_resource_id(get_current_org())
예제 #7
0
def resource_dir_path(resource_id):
    org_name = get_current_org()
    return myservice().resource_dir_path(org_name, resource_id)
예제 #8
0
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)
예제 #9
0
def creds_dict():
    credentials_dict = json.load(
        open(myservice().creds_path(get_current_org())))
    return credentials_dict