Opened 16 years ago
Closed 14 years ago
#4955 closed defect (worksforme)
TypeError: __init__() takes at most 12 arguments (13 given)
Reported by: | Owned by: | Ryan J Ollos | |
---|---|---|---|
Priority: | highest | Component: | TracHoursPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I installed, enable component, execute trac-admin <env> upgrade and restart apache. When I doing a GET operation on /hours, Trac issued an internal error.
Oops…
Trac detected an internal error:
TypeError: init() takes at most 12 arguments (13 given)
Python Traceback
Most recent call last:
- File "c:\archivos de programa\python25\lib\site-packages\Trac-0.11b2-py2.5.egg\trac\web\main.py", line 419, in _dispatch_request
Code fragment:
- try:
- if not env and env_error:
- raise HTTPInternalError(env_error)
- try:
- dispatcher = RequestDispatcher(env)
- dispatcher.dispatch(req)
- except RequestDone:
- pass
- resp = req._response or []
- except HTTPException, e:
archivos de ... frames [{'function': '_dispatch_request', 'lines_before': [' try:', ' ... has_admin True line ' dispatcher.dispatch(req)' lineno 418 message u'TypeError: init() takes at most 12 arguments (13 given)' req <Request "GET u'/hours'"> resp [] tb <traceback object at 0x02574DA0> tb_hide None traceback 'Traceback (most recent call last):\n File "c:
archivos de ... - File "c:\archivos de programa\python25\lib\site-packages\Trac-0.11b2-py2.5.egg\trac\web\main.py", line 196, in dispatch
Code fragment:
- req.args.get('FORM_TOKEN') != req.form_token:
- raise HTTPBadRequest('Missing or invalid form token. '
- 'Do you have cookies enabled?')
- # Process the request and render the template
- resp = chosen_handler.process_request(req)
- if resp:
- if len(resp) == 2: # Clearsilver
- chrome.populate_hdf(req)
- template, content_type = \
- self._post_process_request(req, *resp)
- File "c:\archivos de programa\python25\lib\site-packages\trachoursplugin-0.3.1-py2.5.egg\trachours\hours.py", line 150, in process_request
Code fragment:
- simply send the response itself and not return anything.
- """
- path = req.path_info.rstrip('/')
- if path == '/hours':
- return self.process_timeline(req) 151.
- if path.startswith('/hours/query'):
- return self.save_query(req) 154.
- ### assume a ticket if the other handlers don't work
- File "c:\archivos de programa\python25\lib\site-packages\trachoursplugin-0.3.1-py2.5.egg\trachours\hours.py", line 487, in process_timeline
Code fragment:
- constraints, cols, req.args.get('order'),
- 'desc' in req.args, req.args.get('group'),
- 'groupdesc' in req.args, 'verbose' in req.args,
- rows,
- req.args.get('page'),
- max)
- if rm_est_hours: # if not in the columns, remove estimatedhours
- cols.pop()
- return self.display_html(req, query)
File "c:\archivos de programa\python25\lib\site-packages\Trac-0.11b2-py2.5.egg\trac\web\main.py", line 419, in _dispatch_request
dispatcher.dispatch(req)
File "c:\archivos de programa\python25\lib\site-packages\Trac-0.11b2-py2.5.egg\trac\web\main.py", line 196, in dispatch
resp = chosen_handler.process_request(req)
File "c:\archivos de programa\python25\lib\site-packages\trachoursplugin-0.3.1-py2.5.egg\trachours\hours.py", line 150, in process_request
return self.process_timeline(req)
File "c:\archivos de programa\python25\lib\site-packages\trachoursplugin-0.3.1-py2.5.egg\trachours\hours.py", line 487, in process_timeline
max)
System Information:
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 Trac: 0.11b2 Python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] setuptools: 0.6c9 SQLite: 3.5.2 pysqlite: 2.4.1 Genshi: 0.5.1 mod_python: 3.3.1 Subversion: 1.4.6 (r28521) jQuery: 1.2.3
Attachments (0)
Change History (2)
comment:1 Changed 14 years ago by
Owner: | changed from Jeff Hammel to Ryan J Ollos |
---|
comment:2 Changed 14 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Given that this is a very old report, with Trac 0.11b2, I'm going to close it. I can't reproduce with 0.11.7 and the current trunk.