Example #1
0
def info(attr):
    """ Information about the certificate and the proxy"""
    gr = Grid()
    if attr == "cert":
        gr.getInfo().certificate()
    elif attr == "proxy":
        gr.getProxy().info()
Example #2
0
def ces(index = None):
    """ Print CEs or return the name of the CE on index"""
    gr = Grid()
    if index is None:
        gr.getInfo().getCEs()
    else:
        if gr.getInfo().CEs == []:
            gr.getInfo().collectCEInfo();
        return gr.getInfo().CEs[index-1].CE
Example #3
0
def ses(index = None):
    """ Print SEs or return the name of the SE on index"""
    gr = Grid()
    if index is None:
        gr.getInfo().getSEs()
    else:
        if gr.getInfo().SEs == []:
            gr.getInfo().collectSEInfo()
        return gr.getInfo().SEs[index-1].SE