diff --git a/pym/update/update_info.py b/pym/update/update_info.py index 8ab9fca..a162631 100644 --- a/pym/update/update_info.py +++ b/pym/update/update_info.py @@ -46,9 +46,13 @@ class UpdateInfo(object): """ return SystemIni().getVar(cls.section, cls.varname) == u'on' - def set_update_ready(self, value): - SystemIni().setVar(self.section, - {self.varname:"on" if value else "off"}) + @classmethod + def set_update_ready(cls, value): + """ + Установить статус обновления + """ + SystemIni().setVar(cls.section, + {cls.varname:"on" if value else "off"}) def check_for_dispatch(self): """