VirtualBox

Changeset 67049 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
May 23, 2017 5:48:32 PM (8 years ago)
Author:
vboxsync
Message:

Main/glue/vboxapi.py: clean up, remove vbox attribute, eliminate unnecessary parameter of getSessionObject (it is a completely ignored parameter with a default parameter to make life a little simpler for API clients in Python to deal with the previous version still)
Frontends/VBoxShell: adapt to the cleanup, reduce the unnecessary variations in the code dealing with sessions
ValidationKit etc.: adapt to the cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r67048 r67049  
    25102510                      or (self.fpApiVer == 4.3 and not hasattr(self.oVBoxMgr, 'getSessionObject')):
    25112511                        oSession = self.oVBoxMgr.mgr.getSessionObject(self.oVBox);  # pylint: disable=E1101
     2512                    elif self.fpApiVer < 5.2 \
     2513                      or (self.fpApiVer == 5.2 and hasattr(self.oVBoxMgr, 'vbox')):
     2514                        oSession = self.oVBoxMgr.getSessionObject(self.oVBox);      # pylint: disable=E1101
    25122515                    else:
    2513                         oSession = self.oVBoxMgr.getSessionObject(self.oVBox);      # pylint: disable=E1101
     2516                        oSession = self.oVBoxMgr.getSessionObject();                # pylint: disable=E1101
    25142517                    if self.fpApiVer < 3.3:
    25152518                        oProgress = self.oVBox.openRemoteSession(oSession, sUuid, sType, sEnv);
Note: See TracChangeset for help on using the changeset viewer.

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