Changeset 28411 in vbox
- Timestamp:
- Apr 16, 2010 12:12:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r28378 r28411 545 545 return 0 546 546 547 def asEnumElem(ctx,enum,elem): 548 all = ctx['ifaces'].all_values(enum) 549 for e in all.keys(): 550 if str(elem) == str(all[e]): 551 return e 552 return "<unknown>" 553 547 554 def listCmd(ctx, args): 548 555 for m in getMachines(ctx, True): … … 553 560 print "%sMachine '%s' [%s], state=%s" %(tele,m.name,m.id,asEnumElem(ctx,"SessionState", m.sessionState)) 554 561 return 0 555 556 def asEnumElem(ctx,enum,elem):557 all = ctx['ifaces'].all_values(enum)558 for e in all.keys():559 if elem == all[e]:560 return e561 return "<unknown>"562 562 563 563 def infoCmd(ctx,args):
Note:
See TracChangeset
for help on using the changeset viewer.