summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2010-02-15 14:57:44 -0500
committerChris Lumens <clumens@redhat.com>2010-02-15 15:00:16 -0500
commitcfd75a6cf1e227cd0d7407d58db471039094103c (patch)
treea1b9f0271eb1f937ac760b20871b43f43e892112 /anaconda
parent20ce8b30bc73e97835f3ff5938fdf9c3c6bf55a7 (diff)
downloadanaconda-cfd75a6cf1e227cd0d7407d58db471039094103c.tar.gz
anaconda-cfd75a6cf1e227cd0d7407d58db471039094103c.tar.xz
anaconda-cfd75a6cf1e227cd0d7407d58db471039094103c.zip
Use property() so we can assign to anaconda.intf (#565639).
I'd rather add a rescue mode case to the existing intf property, but we need a screen instance to create the rescue mode interface and we then also need that instance for other things. This makes it more difficult to hook up when I could just use the other style of property instead.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda9
1 files changed, 7 insertions, 2 deletions
diff --git a/anaconda b/anaconda
index f0d329c3b..f4ab9e21d 100755
--- a/anaconda
+++ b/anaconda
@@ -510,8 +510,7 @@ class Anaconda(object):
return self._instLanguage
- @property
- def intf(self):
+ def _getInterface(self):
if self._intf:
return self._intf
@@ -544,6 +543,12 @@ class Anaconda(object):
self._intf = InstallInterface()
return self._intf
+ def _setInterface(self, v):
+ # "lambda cannot contain assignment"
+ self._intf = v
+
+ intf = property(_getInterface, _setInterface)
+
@property
def network(self):
if not self._network: