VirtualBox

Changeset 54123 in vbox for trunk


Ignore:
Timestamp:
Feb 10, 2015 11:15:24 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98134
Message:

Main/glue/vboxapi.py: fix circular reference sabotaging garbage collection and a typo in the webservice part of the python glue.

File:
1 edited

Legend:

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

    r54057 r54123  
    884884    def deinit(self):
    885885        try:
    886             disconnect()
     886            self.disconnect()
    887887        except:
    888888            pass
     
    10021002                raise e
    10031003
    1004         ## @deprecated
    1005         # This used to refer to a session manager class with only one method
    1006         # called getSessionObject.  The method has moved into this call.
    1007         self.mgr = self
    1008 
    10091004    def __del__(self):
    10101005        self.deinit()
     
    10161011        """
    10171012        return 3
     1013
     1014    @deprecated
     1015    @property
     1016    def mgr(self):
     1017        """
     1018        This used to be an attribute referring to a session manager class with
     1019        only one method called getSessionObject. It moved into this class.
     1020        """
     1021        return self;
    10181022
    10191023    #
     
    10771081    def openMachineSession(self, oIMachine, fPermitSharing=True):
    10781082        """
    1079         Attemts to open the a session to the machine.
     1083        Attempts to open the a session to the machine.
    10801084        Returns a session object on success.
    10811085        Raises exception on failure.
    10821086        """
    1083         oSession = self.mgr.getSessionObject(self.vbox)
     1087        oSession = self.getSessionObject(self.vbox);
    10841088        if fPermitSharing:
    10851089            type_ = self.constants.LockType_Shared
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