Commands.add_argument('--showServerSpread', action='store_true') Commands.add_argument('--updateServerSpread', action='store_true') Commands.add_argument('--showStorageUsage', action='store_true') parseDefaultConfig(myParser) CS=CellService() VS=OSDVolService() FsS=OSDFsService() PS=ProjectService() DBM=DBManager() CellInfo=CS.getCellInfo(cached=True) CellInfo.FileServers=CellInfo.FileServers PrjObj = Project() defaultDict=PrjObj.getDict() # # # dump/import : # for serverpartitions, tranlsate for dump into human readable. # also dump raw server-uuids. # for import only consider human readable # but fail if we find no UUID for the hostname if afs.defaultConfig.dumpPrj == True : for p in PS.getProjectList() : if afs.defaultConfig.prjname != "" and p.name != afs.defaultConfig.prjname : continue d=p.getDict() if afs.defaultConfig.prjname != "" and afs.defaultConfig.prjname != d["name"] : continue print "========================================" print "name: {0}".format(d["name"])