#11907 closed defect (cantfix)
TypeError: _fetch_ticket() takes exactly 2 arguments (3 given)
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | ticket system | Version: | 1.0 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
How to Reproduce
install trac 1.0 then install newest release of itteco trac plugin.
When you click on whiteboard roadmap or view tickets/ new ticket You get this error:
TypeError: _fetch_ticket() takes exactly 2 arguments (3 given)
I looked around for a similary problem. Is there any advice you may be have for me?
While doing a GET operation on /newticket, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'component': u'Apps/Orsync',
'milestone': u'milestone1 1.0',
'original_handler': <trac.ticket.web_ui.TicketModule object at 0x7fb0f03fddd0>,
'type': u'enhancement'}
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:33.0) Gecko/20100101 Firefox/33.0
System Information
Trac | 1.0
|
Genshi | 0.7 (without speedups)
|
mod_wsgi | 3.2 (WSGIProcessGroup WSGIApplicationGroup 207.207.28.133|/trac)
|
pysqlite | 2.4.1
|
Python | 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
|
setuptools | 8.2.1
|
SQLite | 3.7.17
|
jQuery | 1.7.2
|
Enabled Plugins
itteco | 0.2.6
|
Python Traceback
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 497, in _dispatch_request
dispatcher.dispatch(req)
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 233, in dispatch
content_type)
File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 968, in render_template
stream |= self._filter_stream(req, method, filename, stream, data)
File "/usr/lib64/python2.6/site-packages/genshi/core.py", line 133, in __or__
return Stream(_ensure(function(self)), serializer=self.serializer)
File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 1147, in inner
data)
File "build/bdist.linux-x86_64/egg/itteco/ticket/web_ui.py", line 152, in filter_stream
'structured_milestones':StructuredMilestone.select(self.env),
File "build/bdist.linux-x86_64/egg/itteco/ticket/model.py", line 256, in select
for milestone in Milestone.select(env, include_completed, db)]
File "build/bdist.linux-x86_64/egg/itteco/ticket/model.py", line 121, in __init__
self._fetch(milestone.name, db)
File "build/bdist.linux-x86_64/egg/itteco/ticket/model.py", line 153, in _fetch
self.ticket._fetch_ticket(row[0], db)
TypeError: _fetch_ticket() takes exactly 2 arguments (3 given)
Attachments (0)
Change History (3)
comment:1 by , 11 years ago
| Keywords: | fetch_ticket error itteco removed |
|---|---|
| Resolution: | → cantfix |
| Status: | new → closed |
comment:2 by , 11 years ago
| Description: | modified (diff) |
|---|
comment:3 by , 11 years ago
You could probably just remove the db argument from _fetch_ticket. IttecoTrac is, perhaps out of perceived or actual necessity, working with a protected method of the Ticket class when it really should not. The db argument was present in Trac 0.12 but removed by Trac 1.0. More significantly, the last activity on IttecoTrac was > 5 years ago, so you may want to contact the author and inquire about the status, fork the plugin and maintain it yourself or try to find someone else who has forked it and is maintaining it, or stop using it altogether.



PluginIssue (th:IttecoTracPlugin).