VirtualBox

Changeset 19852 in vbox


Ignore:
Timestamp:
May 20, 2009 10:17:16 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47518
Message:

Python: generic glue library, hiding all ugly platform details

Location:
trunk/src/VBox
Files:
2 added
2 edited

Legend:

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

    r19602 r19852  
    161161    id = mach.id
    162162    print "removing machine ",mach.name,"with UUID",id
    163     session = ctx['mgr'].getSessionObject(vb)
     163    session = mgr.getSessionObject(vb)
    164164    vb.openSession(session, id)
    165165    mach=session.machine
     
    201201
    202202def getMachines(ctx):
    203     # XPCOM brigde has trouble with array attributes
    204     if ctx['type'] == 'xpcom':
    205        return ctx['vb'].getMachines()
    206     else:
    207        return ctx['vb'].machines
     203    return ctx['global'].getArray(ctx['vb'], 'machines')
    208204
    209205def asState(var):
     
    505501
    506502    # MSCOM doesn't work with collector yet
    507     if ctx['type'] != 'mscom':
     503    if ctx['type'] != 'MSCOM':
    508504       ctx['perf'] = PerfCollector(vbox)
    509505    else:
  • trunk/src/VBox/Main/Makefile.kmk

    r19844 r19852  
    173173VBox-main-xidl_SOURCES = $(VBOX_XIDL_FILE_SRC)
    174174
     175INSTALLS += VBox-python-glue
     176VBox-python-glue_INST = $(INST_SDK)bindings/
     177# This file also should go to Python site-wide modules directory
     178# so for users it look 'just being here'
     179VBox-python-glue_SOURCES = glue/vboxapi.py=>glue/python/vboxapi.py
    175180
    176181ifndef VBOX_ONLY_SDK # Note this goes on for *very* long
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