def execute(self,options,subargs): if not options.accountId: self.parser.error("accountid is required...") account = Account.get(options.accountId) if account!= None: print_tabulate(Node,account[0].listnodes()) else: print "Error: accountid is not exisit"
def execute(self, options, subargs): if not options.accountId: self.parser.error("accountid is required...") account = Account.get(options.accountId) if account != None: print_tabulate(Node, account[0].listnodes()) else: print "Error: accountid is not exisit"
def execute(self,options,subargs): if options.accountId == "all": print_tabulate(Account,Account.list()) else: print_tabulate(Account,Account.get(options.accountId))
def execute(self, options, subargs): if options.accountId == "all": print_tabulate(Account, Account.list()) else: print_tabulate(Account, Account.get(options.accountId))