This allows me to set an "anaconda" attribute on every command handler we've got, so parse execute methods can refer to self.anaconda. --- pyanaconda/kickstart.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py index fda0517..dd33de8 100644 --- a/pyanaconda/kickstart.py +++ b/pyanaconda/kickstart.py @@ -1184,6 +1184,14 @@ class AnacondaKSHandler(superclass): # Data objects can be seen over and over again. self._dataObjs.append(obj) + def dispatcher(self, args, lineno): + cmd = args[0] + + if self.commands.has_key(cmd): + self.commands[cmd].anaconda = self.anaconda + + return superclass.dispatcher(self, args, lineno) + def execute(self): try: for obj in filter(lambda o: hasattr(o, "execute"), self._dataObjs): -- 1.7.1.1 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list