コード例 #1
0
ファイル: hostutil_cmd.py プロジェクト: kayw/huhamhire-hosts
 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
ファイル: loaddata.py プロジェクト: neobar/huhamhire-hosts
 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
ファイル: qdialog_ui.py プロジェクト: liangcongqq/hoststool
 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))