Changeset 21727 in vbox for trunk/src/VBox/Main/glue
- Timestamp:
- Jul 20, 2009 2:56:41 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 50298
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.