def info(attr): """ Information about the certificate and the proxy""" gr = Grid() if attr == "cert": gr.getInfo().certificate() elif attr == "proxy": gr.getProxy().info()
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
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