- Timestamp:
- Jul 20, 2009 2:56:41 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 50298
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Frontends/VBoxShell/vboxshell.py ¶
r21641 r21727 129 129 130 130 def onGuestPropertyChange(self, id, name, newValue, flags): 131 131 print "onGuestPropertyChange: %s: %s=%s" %(id, name, newValue) 132 132 133 133 g_hasreadline = 1 … … 792 792 793 793 if (len(args) > 2): 794 user = args[ 1]794 user = args[2] 795 795 else: 796 796 user = "" 797 797 798 798 if (len(args) > 3): 799 passwd = args[ 2]799 passwd = args[3] 800 800 else: 801 801 passwd = "" -
TabularUnified trunk/src/VBox/Main/glue/vboxapi.py ¶
r21640 r21727 397 397 398 398 def getVirtualBox(self): 399 return connect(self.url, self.user, self.password)399 return self.connect(self.url, self.user, self.password) 400 400 401 401 def connect(self, url, user, passwd): 402 402 if self.vbox is not None: 403 disconnect()403 self.disconnect() 404 404 from VirtualBox_wrappers import IWebsessionManager2 405 if url is None: 406 url = "" 405 407 self.url = url 406 408 if user is None: … … 412 414 self.wsmgr = IWebsessionManager2(self.url) 413 415 self.vbox = self.wsmgr.logon(self.user, self.password) 416 if not self.vbox.handle: 417 raise Exception("cannot connect to '"+self.url+"' as '"+self.user+"'") 414 418 return self.vbox 415 419
Note:
See TracChangeset
for help on using the changeset viewer.