VirtualBox

Ignore:
Timestamp:
Jul 22, 2010 4:24:56 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63933
Message:

Python: update for new session API

File:
1 edited

Legend:

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

    r30825 r31014  
    519519        self.platform.initPerThread()
    520520
    521     def openMachineSession(self, machineId):
     521    def openMachineSession(self, mach, permitSharing = True):
    522522         session = self.mgr.getSessionObject(self.vbox)
    523          try:
    524              self.vbox.openExistingSession(session, machineId)
    525          except:
    526              self.vbox.openSession(session, machineId)
     523         mach.lockForSession(session, permitSharing)
    527524         return session
    528525
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