示例#1
0
 def set_info(self):
     """
     Set the information of the current local data file.
     """
     info = RetrieveData.get_info()
     build = info["Buildtime"]
     self.hostsinfo["Version"] = info["Version"]
     self.hostsinfo["Release"] = CommonUtil.timestamp_to_date(build)
示例#2
0
 def set_info(self):
     """
     Set the information of the current local data file.
     """
     info = RetrieveData.get_info()
     build = info["Buildtime"]
     self.hostsinfo["Version"] = info["Version"]
     self.hostsinfo["Release"] = CommonUtil.timestamp_to_date(build)
示例#3
0
 def set_info(cls):
     """
     Set the information of the current local data file.
     Modified from tui.hostsutil.HostsUtil.set_info()
     """
     info = RetrieveData.get_info()
     build = info["Buildtime"]
     cls.hostsinfo["Version"] = info["Version"]
     cls.hostsinfo["Release"] = CommonUtil.timestamp_to_date(build)
示例#4
0
 def set_info(self):
     """
     Set the information of the current local data file.
     """
     info = RetrieveData.get_info()
     ver = info["Version"]
     self._cur_ver = ver
     self.set_label_text(self.ui.labelVersionData, ver)
     build = info["Buildtime"]
     build = CommonUtil.timestamp_to_date(build)
     self.set_label_text(self.ui.labelReleaseData, unicode(build))