def countPIDtype(args): cred = Credentials('os', args.credpath) cred.parse() pidm = PIDManagement(cred) result = pidm.requestPID(cred, args.typepid, args.searchfield) print "Number of PIDs = ", len(result)
def countPIDtype(args): cred = Credentials('os',args.credpath) cred.parse() pidm = PIDManagement(cred) result = pidm.requestPID(cred,args.typepid,args.searchfield) logging.info("Number of PIDs = %s" % len(result))
def countPIDprefix(args): cred = Credentials('os', args.credpath) cred.parse() pidm = PIDManagement(cred) result = pidm.requestPID(cred, "limit", "0") print "Number of PIDs = ", len(result)
def countPIDprefix(args): cred = Credentials('os',args.credpath) cred.parse() pidm = PIDManagement(cred) result = pidm.requestPID(cred,"limit","0") logging.info("Number of PIDs = %s" % len(result))