tugboat.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:scl_jamf_tools 作者: univ-of-utah-marriott-library-apple 项目源码 文件源码
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.")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号