Beispiel #1
0
 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"
Beispiel #2
0
 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"
Beispiel #3
0
 def execute(self,options,subargs):
     if options.accountId == "all":
         print_tabulate(Account,Account.list())
     else:
         print_tabulate(Account,Account.get(options.accountId))
Beispiel #4
0
 def execute(self, options, subargs):
     if options.accountId == "all":
         print_tabulate(Account, Account.list())
     else:
         print_tabulate(Account, Account.get(options.accountId))