summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-02-13 19:31:23 +0000
committerJeremy Katz <katzj@redhat.com>2002-02-13 19:31:23 +0000
commit76d7d2de6f08ca3dc889c1e460a6c0c2d0fd9a2a (patch)
treed69b340204c852ed2e7490f9d84bd5b0598de79f /textw
parent3cc5e61f10ba9bbe6539539cecedfadb795199e0 (diff)
downloadanaconda-76d7d2de6f08ca3dc889c1e460a6c0c2d0fd9a2a.tar.gz
anaconda-76d7d2de6f08ca3dc889c1e460a6c0c2d0fd9a2a.tar.xz
anaconda-76d7d2de6f08ca3dc889c1e460a6c0c2d0fd9a2a.zip
even more fun... move Partitions object to partitions.py and adjust accordingly.
move the Request object into partRequests.py and actually make it a nicer object with subclasses for the various types.
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index 30e8c696a..e14d460a8 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -22,6 +22,7 @@ import parted
from partitioning import *
from partedUtils import *
from partIntfHelpers import *
+from partRequests import *
from fsset import *
from autopart import *
from snack import *
@@ -928,12 +929,12 @@ class PartitionWindow:
self.screen.popWindow()
def newCb(self):
- request = PartitionSpec(fileSystemTypeGetDefault(), REQUEST_NEW, 1)
+ request = NewPartitionSpec(fileSystemTypeGetDefault(), 1)
self.editPartitionRequest(request, isNew = 1)
def makeraidCb(self):
- request = PartitionSpec(fileSystemTypeGetDefault(), REQUEST_RAID, 1)
+ request = RaidRequestSpec(fileSystemTypeGetDefault())
self.editRaidRequest(request, isNew = 1)