Changeset 36346 in vbox for trunk/src/VBox/Frontends/VBoxShell
- Timestamp:
- Mar 22, 2011 2:37:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r36246 r36346 2173 2173 setParentId = False 2174 2174 parentId = "" 2175 hdd = vb.open HardDisk(loc, ctx['global'].constants.AccessMode_ReadWrite, setImageId, imageId, setParentId, parentId)2175 hdd = vb.openMedium(loc, ctx['global'].constants.DeviceType_HardDisk, ctx['global'].constants.AccessMode_ReadWrite) 2176 2176 print "registered HDD as %s" %(hdd.id) 2177 2177 return 0 … … 2288 2288 vb = ctx['vb'] 2289 2289 loc = args[1] 2290 id = "" 2291 iso = vb.openDVDImage(loc, id) 2290 iso = vb.openMedium(loc, ctx['global'].constants.DeviceType_DVD, ctx['global'].constants.AccessMode_ReadOnly) 2292 2291 print "registered ISO as %s" %(iso.id) 2293 2292 return 0 … … 2301 2300 loc = args[1] 2302 2301 try: 2303 dvd = vb.findMedium(loc, )2302 dvd = vb.findMedium(loc, ctx['global'].constants.DeviceType_DVD) 2304 2303 except: 2305 2304 print "no DVD with path %s registered" %(loc) … … 2307 2306 2308 2307 progress = dvd.close() 2309 print "Unregistered ISO at %s" %(colPath(ctx, dvd.location))2308 print "Unregistered ISO at %s" %(colPath(ctx,loc)) 2310 2309 2311 2310 return 0
Note:
See TracChangeset
for help on using the changeset viewer.