Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Error when viewing tickets after installing plugin #1

Closed
Unode opened this Issue · 4 comments

3 participants

@Unode

Installed plugin in egg format into trac-project/plugins

Enabled plugin on admin interface.

Got the following error when viewing a pre-existing ticket

File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 450, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 227, in dispatch
data, content_type)
File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 745, in render_template
stream |= self.filter_stream(req, method, filename, stream, data)
File "/usr/lib/pymodules/python2.5/genshi/core.py", line 128, in __or

return Stream(_ensure(function(self)), serializer=self.serializer)
File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 848, in inner
data)
File "build/bdist.linux-x86_64/egg/evidence/ticket_webui.py", line 31, in filter_streamFile "build/bdist.linux-x86_64/egg/evidence/helpers.py", line 10, in ticket_finishFile "build/bdist.linux-x86_64/egg/evidence/helpers.py", line 60, in ticket_estimate_timeFile "build/bdist.linux-x86_64/egg/evidence/helpers.py", line 41, in get_estimation_historyFile "/usr/lib/python2.5/site-packages/trac/db/util.py", line 64, in execute
return self.cursor.execute(sql_escape_percent(sql), args)
File "/usr/lib/pymodules/python2.5/MySQLdb/cursors.py", line 151, in execute
query = query % db.literal(args)

TypeError: int argument required

The system is:

Trac: 0.11.7
Python: 2.5.2 (r252:60911, Jan 24 2010, 18:02:01) [GCC 4.3.2]
setuptools: 0.6
MySQL: server: "5.0.51a-24+lenny3", client: "5.0.51a", thread-safe: 1
MySQLdb: 1.2.2
Genshi: 0.5.1
mod_wsgi: 2.5 (WSGIProcessGroup website WSGIApplicationGroup %{GLOBAL})
Pygments: 0.10
GIT: 1.5.6.5

@Unode

Forgot to add that I'm using the code as of commit 7f9dc71

@cboos
diff --git a/evidence/helpers.py b/evidence/helpers.py
index 1b06f6f..ad1d7f6 100644
--- a/evidence/helpers.py
+++ b/evidence/helpers.py
@@ -36,7 +36,7 @@ def get_estimation_history(db, owner):
                             t.status = 'closed' AND
                             tc.name = %s AND
                             tc.value > 0 AND
-                            time > %d
+                            time > %s
                         ORDER BY 
                             t.id DESC""", [ owner, field, int(time.time())-129600 ] ) # 129600 - 90 дни
         
@ironsmile
Owner

This one is also patched in the new version from today.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.