Re: [Twisted-Python] SELECT returns no results without conn.commit()

2014-06-04 Thread Dustin J. Mitchell
Also, might I suggest that, at least for purposes of debugging, you use a virtualenv (or a throwaway VM if you prefer) and install a copy of Twisted from this decade. Twisted is very stable, and fixes lots of bugs in every release. So you're fairly unlikely to uncover *new* problems, but very lik

Re: [Twisted-Python] SELECT returns no results without conn.commit()

2014-06-04 Thread Glyph Lefkowitz
On Jun 4, 2014, at 2:03 AM, Franz Schwartau wrote: > I know twisted 8.2.0 is quite old. Unfortunatly there are no newer RPM in > RHEL/CentOS or even EPEL. Yeah, RHEL is kind of a bummer. > I could provide the complete code. But it would be laborious to set up > everything. You'd need postfix

Re: [Twisted-Python] SELECT returns no results without conn.commit()

2014-06-04 Thread Franz Schwartau
Hi Glyph! On Tue, Jun 03, 2014 at 11:57:45AM -0700, Glyph Lefkowitz wrote: >On Jun 3, 2014, at 6:31 AM, Franz Schwartau wrote: > > Hi! > > I'm trying to extend ppolicy (http://bimbo.fjfi.cvut.cz/ppolicy) a bit. > ppolicy uses the twisted framework. On CentOS 6.5 version 8.2.0

Re: [Twisted-Python] SELECT returns no results without conn.commit()

2014-06-03 Thread Glyph Lefkowitz
On Jun 3, 2014, at 6:31 AM, Franz Schwartau wrote: > Hi! > > I'm trying to extend ppolicy (http://bimbo.fjfi.cvut.cz/ppolicy) a bit. > ppolicy uses the twisted framework. On CentOS 6.5 version 8.2.0 of twisted is > installed. I should note that Twisted 8.2.0 is 6 years old at this point, so

[Twisted-Python] SELECT returns no results without conn.commit()

2014-06-03 Thread Franz Schwartau
Hi! I'm trying to extend ppolicy (http://bimbo.fjfi.cvut.cz/ppolicy) a bit. ppolicy uses the twisted framework. On CentOS 6.5 version 8.2.0 of twisted is installed. I wrote a separate module called LookupSessionDB: http://pastebin.com/u4TMNhpd It looks up some values from a database table. It