Index: /trunk/src/VBox/Main/glue/vboxapi.py
===================================================================
--- /trunk/src/VBox/Main/glue/vboxapi.py	(revision 54122)
+++ /trunk/src/VBox/Main/glue/vboxapi.py	(revision 54123)
@@ -884,5 +884,5 @@
     def deinit(self):
         try:
-            disconnect()
+            self.disconnect()
         except:
             pass
@@ -1002,9 +1002,4 @@
                 raise e
 
-        ## @deprecated
-        # This used to refer to a session manager class with only one method
-        # called getSessionObject.  The method has moved into this call.
-        self.mgr = self
-
     def __del__(self):
         self.deinit()
@@ -1016,4 +1011,13 @@
         """
         return 3
+
+    @deprecated
+    @property
+    def mgr(self):
+        """
+        This used to be an attribute referring to a session manager class with
+        only one method called getSessionObject. It moved into this class.
+        """
+        return self;
 
     #
@@ -1077,9 +1081,9 @@
     def openMachineSession(self, oIMachine, fPermitSharing=True):
         """
-        Attemts to open the a session to the machine.
+        Attempts to open the a session to the machine.
         Returns a session object on success.
         Raises exception on failure.
         """
-        oSession = self.mgr.getSessionObject(self.vbox)
+        oSession = self.getSessionObject(self.vbox);
         if fPermitSharing:
             type_ = self.constants.LockType_Shared
