Ejemplo n.º 1
0
def modify_endpoint(endpoint):
    return "/userman" + endpoint if apache_mode() else endpoint
Ejemplo n.º 2
0
def modify_endpoint(endpoint):
    return "/userman" + endpoint if apache_mode() else endpoint
Ejemplo n.º 3
0
def make_connection():
    if not apache_mode():
        return httplib.HTTPConnection("127.0.0.1", 5000)
    else:
        return httplib.HTTPSConnection("localhost")
Ejemplo n.º 4
0
def make_connection():
    if not apache_mode():
        return httplib.HTTPConnection("127.0.0.1",5000)
    else:
        return httplib.HTTPSConnection("localhost")