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