Fix warn() output for MachineUI

We used "self" but the paramter was called "s". Fixes a crash when we
ui.warn() (only when using the MachineUI).

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2012-01-20 11:33:30 +01:00
parent 09ef5ab042
commit 36dd46abfc

View File

@ -45,7 +45,7 @@ class MachineUI(UIBase):
def _msg(s, msg):
s._printData('_display', msg)
def warn(s, msg, minor = 0):
def warn(self, msg, minor = 0):
# TODO, remove and cleanup the unused minor stuff
self.logger.warning("%s:%s:%s:%s" % (
'warn', '', currentThread().getName(), msg))