TracNav with Trac
Every now and again I get to play with some python script which has some obscure error code which requires fixing. So I've fixed my issues with the TracNav wiki macro for Trac:
--- TracNav.py?rev=3044&format=txt Tue Nov 1 13:56:03 2005
+++ TracNav.py Mon Nov 14 21:45:44 2005
@@ -80,7 +80,7 @@
tocText = hdf.getValue('wiki.page_source', tocText);
else:
cursor = db.cursor()
- cursor.execute('SELECT text FROM wiki WHERE name=%s ORDER BY version DESC LIMIT 1', name)
+ cursor.execute('SELECT text FROM wiki WHERE name=%s ORDER BY version DESC LIMIT 1', (name, ))
row = cursor.fetchone()
if row:
tocText = row[0]
Feel free to grab the patch in unified diff format.