Modify ↓
Opened 14 years ago
Last modified 5 years ago
#9188 new enhancement
Having a section config section to use a Proxy server
| Reported by: | Flyounet | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | WebSequenceDiagramPlugin |
| Severity: | normal | Keywords: | |
| Cc: | dev@… | Trac Release: | 0.11 |
Description
I need to go through a proxy and urlopen doesn't work directly.
It could be great to have :
[sequencediagram] proxy = http://host:port
or having an exception raise instead of having the page not working.
FYI, here are the error when used without proxy :
Trac a detecté une erreur interne : IOError: [Errno socket error] (-2, 'Name or service not known')
Fichier « /var/www/.python-eggs/Trac-0.12.2-py2.4.egg-tmp/trac/wiki/templates/wiki_edit.html », ligne 136, dans <Expression u'wiki_to_html(context(page.resource), page.text)'>
${wiki_to_html(context(page.resource), page.text)}
Fichier « build/bdist.linux-x86_64/egg/trac/util/compat.py », ligne 83, dans newfunc
return func_(*(args + fargs), **dict(kwargs, **fkwargs))
Fichier « build/bdist.linux-x86_64/egg/trac/wiki/formatter.py », ligne 1497, dans format_to_html
return HtmlFormatter(env, context, wikidom).generate(escape_newlines)
Fichier « build/bdist.linux-x86_64/egg/trac/wiki/formatter.py », ligne 1452, dans generate
escape_newlines)
Fichier « build/bdist.linux-x86_64/egg/trac/wiki/formatter.py », ligne 1201, dans format
self.handle_code_block(line, block_start_match)
Fichier « build/bdist.linux-x86_64/egg/trac/wiki/formatter.py », ligne 1091, dans handle_code_block
processed = self.code_processor.process(code_text)
Fichier « build/bdist.linux-x86_64/egg/trac/wiki/formatter.py », ligne 304, dans process
text = self.processor(text)
Fichier « build/bdist.linux-x86_64/egg/trac/wiki/formatter.py », ligne 291, dans _macro_processor
text)
Fichier « build/bdist.linux-x86_64/egg/sequencediagram/macro.py », ligne 39, dans expand_macro
f = urllib.urlopen("http://www.websequencediagrams.com/index.php", data)
Fichier « /usr/lib64/python2.4/urllib.py », ligne 84, dans urlopen
return opener.open(url, data)
Fichier « /usr/lib64/python2.4/urllib.py », ligne 192, dans open
return getattr(self, name)(url, data)
Fichier « /usr/lib64/python2.4/urllib.py », ligne 313, dans open_http
h.endheaders()
Fichier « /usr/lib64/python2.4/httplib.py », ligne 804, dans endheaders
self._send_output()
Fichier « /usr/lib64/python2.4/httplib.py », ligne 685, dans _send_output
self.send(msg)
Fichier « /usr/lib64/python2.4/httplib.py », ligne 652, dans send
self.connect()
Fichier « /usr/lib64/python2.4/httplib.py », ligne 620, dans connect
socket.SOCK_STREAM):
Thanks.
Attachments (0)
Change History (4)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
| Status: | new → assigned |
|---|
comment:3 Changed 12 years ago by
| Status: | assigned → new |
|---|
comment:4 Changed 5 years ago by
| Owner: | Ryan J Ollos deleted |
|---|
Note: See
TracTickets for help on using
tickets.



I might be able to put together a patch sometime soon, and would gladly accept and apply a patch.