VirtualBox

Changeset 20149 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 29, 2009 12:30:26 PM (16 years ago)
Author:
vboxsync
Message:

Python: ship and install bindings with binary install on Linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/shellcommon.py

    r19901 r20149  
    175175    id = mach.id
    176176    print "removing machine ",mach.name,"with UUID",id
    177     session = mgr.getSessionObject(vb)
    178     vb.openSession(session, id)
     177    session = ctx['global'].openMachineSession(id)
    179178    mach=session.machine
    180179    for d in mach.getHardDiskAttachments():
    181180        mach.detachHardDisk(d.controller, d.port, d.device)
    182     session.close()
     181    ctx['global'].closeMachineSession(session)
    183182    mach = vb.unregisterMachine(id)
    184183    if mach:
     
    416415    if mach == None:
    417416        return 0
    418     vbox = ctx['vb']
    419417    session = ctx['mgr'].getSessionObject(vbox)
    420418    vbox.openSession(session, mach.id)
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