Modify

Opened 13 years ago

Last modified 4 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 13 years ago by Ryan J Ollos

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

comment:2 Changed 12 years ago by Ryan J Ollos

Status: newassigned

comment:3 Changed 11 years ago by Ryan J Ollos

Status: assignednew

comment:4 Changed 4 years ago by Ryan J Ollos

Owner: Ryan J Ollos deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.