Hello all,

   I have my own TicketPlugin, and it works very well. But now, I'm
trying to rewrite the method  '_process_ticket_request' in my
EditModule class, and I get an AssertError

I just created a new method for redirect, like this:

   # The new method
   def _processa_ticket_request_2(self, req):
         self._processa_ticket_request_2(req)

   # The old and working method
   def _processa_ticket_request_2(self, req):
        id = int(req.args.get('id'))
        version = req.args.get('version', None)
        if version is not None:

And I got this Traceback :

Exception happened during processing of request from ('127.0.0.1',
33848)
Traceback (most recent call last):
  File "/usr/lib/python2.5/SocketServer.py", line 464, in
process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib/python2.5/SocketServer.py", line 254, in
finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.5/SocketServer.py", line 522, in __init__
    self.handle()
  File "/usr/lib/python2.5/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "/home/vinicius.dusso/public_html/projetos_py/Trac-0.11.1/trac/
web/wsgi.py", line 175, in handle_one_request
    gateway.run(self.server.application)
  File "/home/vinicius.dusso/public_html/projetos_py/Trac-0.11.1/trac/
web/wsgi.py", line 98, in run
    self._write('')
  File "/home/vinicius.dusso/public_html/projetos_py/Trac-0.11.1/trac/
web/wsgi.py", line 192, in _write
    assert self.headers_set, 'Response not started'
AssertionError: Response not started

Has someone know why this is happening?

Thanks,

--
Vinicius Dusso

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to