I applied the following fix, and it solved the problem. If you think
this is sensible, I'd appreciate it being committed upstream.
(I am still on r5370 via pkgsrc.)
--- tande_filters.py.~1~ 2009-09-16 07:17:06.000000000 -0400
+++ tande_filters.py 2009-11-02 09:13:30.000000000 -0500
@@ -11,7 +11,8 @@
def __init__(self, comp):
self.component = comp
- cur = comp.env.get_db_cnx().cursor()
+ conn = comp.env.get_db_cnx()
+ cur = conn.cursor()
try:
cur.execute("SELECT id FROM custom_report")
self.billing_reports = set([x[0] for x in cur.fetchall()])
@@ -20,6 +21,7 @@
# TimingAndEstimationPlugin isn't installed), silently continue
# without hiding anything.
self.billing_reports = set()
+ conn.commit()
self.component.log.debug('self.billing_reports= %r' % self.billing_reports)
def __call__(self, row_stream):
Thanks for pointing this out (we also use postgres, so I am sure this
would have bitten us eventually). Also FWIW, I have found that the
commit is not necessary on sqlite, so this bug is not apparent there.
Please let me know if you experience further errors!
http://trac-hacks.org/changeset/7000
HTH,
Russ Tyndall