Exemple #1
0
 def open_dashboard(self, url):
     config = get_config()
     self.out.log("Opening dashboard")
     parsed = list(urlparse(url))
     parsed[1] = "{}:{}@{}".format(
         config.get("dashboard_user"),
         config.get("dashboard_password"),
         parsed[1],
     )
     open_browser(urlunparse(parsed))
Exemple #2
0
    def new_recruit(self, match):
        """Dispatched to by notify(). If a recruitment request has been issued,
        open a browser window for the a new participant (in this case the
        person doing local debugging).
        """
        self.out.log("new recruitment request!")
        if self.no_browsers:
            self.out.log(recruiters.NEW_RECRUIT_LOG_PREFIX + ": " +
                         match.group(1))
            return
        url = self.with_proxy_port(match.group(1))

        open_browser(url)
 def new_recruit(self, match):
     """Dispatched to by notify(). If a recruitment request has been issued,
     open a browser window for the a new participant (in this case the
     person doing local debugging).
     """
     self.out.log("new recruitment request!")
     if self.no_browsers:
         self.out.log(recruiters.NEW_RECRUIT_LOG_PREFIX + ": " +
                      match.group(1))
         return
     url = match.group(1)
     if self.proxy_port is not None:
         self.out.log("Using proxy port {}".format(self.proxy_port))
         url = url.replace(str(get_config().get("base_port")),
                           self.proxy_port)
     open_browser(url)