def render(self, node): node.mindretrieveURL.atts['href'] = '%s/' % response.getMindRetrieveBaseURL() node.importURL.atts['href'] = '%s/weblib/import' % response.getMindRetrieveBaseURL() node.bookmarkletURL.atts['href'] = response.buildBookmarklet() node.proxyPort.content = str(cfg.getint('http.proxy_port')) node.proxyInstructionURL.atts['href'] = '%s/help/ProxyInstruction' % response.getMindRetrieveBaseURL()
def test_buildBookmarklet(self): # sanity run url = response.buildBookmarklet() self.assert_('http://localhost:' in url)