def open_id_web(self):
"""
Open currently displayed computer record in jamf
"""
self.logger.info("%s: activated" % inspect.stack()[0][3])
if self.id_string.get():
url_formatted = self.jamf_hostname + "/computers.html?id=" + self.id_string.get() + "&o=r"
webbrowser.open_new_tab(url_formatted)
self.logger.info("%s: Opened id web. (%s)" % (inspect.stack()[0][3], self.id_string.get()))
self.status_label.configure(style='Normal.TLabel')
self.status_string.set("Opened URL for ID.")
else:
self.logger.error("%s: No computer id available." % inspect.stack()[0][3])
self.status_label.configure(style='Warning.TLabel')
self.status_string.set("No ID available.")
tugboat.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录