VirtualBox

Changeset 21727 in vbox for trunk/src/VBox/Main/glue


Ignore:
Timestamp:
Jul 20, 2009 2:56:41 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50298
Message:

Python WS: few typos on authentication path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/vboxapi.py

    r21640 r21727  
    397397
    398398    def getVirtualBox(self):
    399         return connect(self.url, self.user, self.password)
     399        return self.connect(self.url, self.user, self.password)
    400400
    401401    def connect(self, url, user, passwd):
    402402        if self.vbox is not None:
    403              disconnect()
     403             self.disconnect()
    404404        from VirtualBox_wrappers import IWebsessionManager2
     405        if url is None:
     406            url = ""
    405407        self.url = url
    406408        if user is None:
     
    412414        self.wsmgr = IWebsessionManager2(self.url)
    413415        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+"'")
    414418        return self.vbox
    415419
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette