summaryrefslogtreecommitdiffstats
path: root/partIntfHelpers.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-02-12 09:47:50 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-02-12 11:30:18 -1000
commit8e8efbfb0d49191c811d9f5eef6f00ed9bf6a6e2 (patch)
tree8fda8f60e5d25677ffbc632aab75ebbaa1dd23f4 /partIntfHelpers.py
parentc4e53f5b148ec8cc78ea0ba69239fa2734182298 (diff)
downloadanaconda-8e8efbfb0d49191c811d9f5eef6f00ed9bf6a6e2.tar.gz
anaconda-8e8efbfb0d49191c811d9f5eef6f00ed9bf6a6e2.tar.xz
anaconda-8e8efbfb0d49191c811d9f5eef6f00ed9bf6a6e2.zip
Use device property on Disk and Geometry objects.
The property name for Device objects on a Disk or Geometry is 'device', not 'dev'.
Diffstat (limited to 'partIntfHelpers.py')
-rw-r--r--partIntfHelpers.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/partIntfHelpers.py b/partIntfHelpers.py
index 8dc195e36..2bc6620d6 100644
--- a/partIntfHelpers.py
+++ b/partIntfHelpers.py
@@ -208,8 +208,9 @@ def doDeletePartitionByRequest(intf, requestlist, partition,
if partition.type & parted.PARTITION_EXTENDED:
requestlist.deleteAllLogicalPartitions(partition)
- delete = partRequests.DeleteSpec(drive, partition.geom.start,
- partition.geom.end)
+ delete = partRequests.DeleteSpec(drive,
+ partition.geometry.start,
+ partition.geometry.end)
requestlist.addDelete(delete)
elif isinstance(request, partRequests.LogicalVolumeRequestSpec):
vgreq = requestlist.getRequestByID(request.volumeGroup)
@@ -343,14 +344,14 @@ def doEditPartitionByRequest(intf, requestlist, part):
return (None, None)
elif part.type & parted.PARTITION_FREESPACE:
request = partRequests.PartitionSpec(fsset.fileSystemTypeGetDefault(),
- start = part.geom.dev.startSectorToCylinder(part.geom.start),
- end = part.geom.dev.endSectorToCylinder(part.geom.end),
+ start = part.geometry.device.startSectorToCylinder(part.geometry.start),
+ end = part.geometry.device.endSectorToCylinder(part.geometry.end),
drive = [ partedUtils.get_partition_drive(part) ])
return ("NEW", request)
elif part.type & parted.PARTITION_EXTENDED:
return (None, None)
-
+
ret = requestlist.containsImmutablePart(part)
if ret:
intf.messageWindow(_("Unable To Edit"),