- Timestamp:
- Aug 18, 2015 4:15:25 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r56000 r57440 2235 2235 setParentId = False 2236 2236 parentId = "" 2237 hdd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_HardDisk, ctx['global'].constants.AccessMode_ReadWrite, false)2237 hdd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_HardDisk, ctx['global'].constants.AccessMode_ReadWrite, False) 2238 2238 print "registered HDD as %s" % (hdd.id) 2239 2239 return 0 … … 2254 2254 loc = args[2] 2255 2255 try: 2256 hdd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_HardDisk, ctx['global'].constants.AccessMode_ReadWrite, false)2256 hdd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_HardDisk, ctx['global'].constants.AccessMode_ReadWrite, False) 2257 2257 except: 2258 2258 print "no HDD with path %s registered" % (loc) … … 2289 2289 loc = args[2] 2290 2290 try: 2291 hdd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_HardDisk, ctx['global'].constants.AccessMode_ReadWrite, false)2291 hdd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_HardDisk, ctx['global'].constants.AccessMode_ReadWrite, False) 2292 2292 except: 2293 2293 print "no HDD with path %s registered" % (loc) … … 2309 2309 vmunreg = 0 2310 2310 try: 2311 hdd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_HardDisk, ctx['global'].constants.AccessMode_ReadWrite, false)2311 hdd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_HardDisk, ctx['global'].constants.AccessMode_ReadWrite, False) 2312 2312 except: 2313 2313 print "no HDD with path %s registered" % (loc) … … 2334 2334 loc = args[1] 2335 2335 try: 2336 hdd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_HardDisk, ctx['global'].constants.AccessMode_ReadWrite, false)2336 hdd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_HardDisk, ctx['global'].constants.AccessMode_ReadWrite, False) 2337 2337 except: 2338 2338 print "no HDD with path %s registered" % (loc) … … 2351 2351 vbox = ctx['vb'] 2352 2352 loc = args[1] 2353 iso = vbox.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly, false)2353 iso = vbox.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly, False) 2354 2354 print "registered ISO as %s" % (iso.id) 2355 2355 return 0 … … 2363 2363 loc = args[1] 2364 2364 try: 2365 dvd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly, false)2365 dvd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly, False) 2366 2366 except: 2367 2367 print "no DVD with path %s registered" % (loc) … … 2381 2381 loc = args[1] 2382 2382 try: 2383 dvd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly, false)2383 dvd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly, False) 2384 2384 except: 2385 2385 print "no DVD with path %s registered" % (loc) … … 2404 2404 loc = args[2] 2405 2405 try: 2406 dvd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly, false)2406 dvd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly, False) 2407 2407 except: 2408 2408 print "no DVD with path %s registered" % (loc) … … 2427 2427 loc = args[2] 2428 2428 try: 2429 dvd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly, false)2429 dvd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly, False) 2430 2430 except: 2431 2431 print "no DVD with path %s registered" % (loc) … … 2446 2446 loc = args[2] 2447 2447 try: 2448 dvd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly, false)2448 dvd = vbox.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly, False) 2449 2449 except: 2450 2450 print "no DVD with path %s registered" % (loc) … … 2635 2635 else: 2636 2636 desc = "" 2637 cmdAnyVm(ctx, mach, lambda ctx, mach, console, args: progressBar(ctx, mach.takeSnapshot(name, desc, true)[1]))2637 cmdAnyVm(ctx, mach, lambda ctx, mach, console, args: progressBar(ctx, mach.takeSnapshot(name, desc, True)[0])) 2638 2638 return 0 2639 2639
Note:
See TracChangeset
for help on using the changeset viewer.