diff options
author | Chris Lumens <clumens@redhat.com> | 2010-02-15 14:57:44 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2010-02-15 15:00:16 -0500 |
commit | cfd75a6cf1e227cd0d7407d58db471039094103c (patch) | |
tree | a1b9f0271eb1f937ac760b20871b43f43e892112 /anaconda | |
parent | 20ce8b30bc73e97835f3ff5938fdf9c3c6bf55a7 (diff) | |
download | anaconda-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-x | anaconda | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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: |