Re: [Twisted-Python] How to correctly run Sqlite with Twisted?

2017-09-19 Thread Jean-Paul Calderone
On Tue, Sep 19, 2017 at 4:59 PM, Goffi wrote: > Hello, > > I'm using Sqlite3 module through Twisted's enterpirse.adbapi, I create the > ConnectionPool instance like this: > >self.dbpool = ConnectionPool("sqlite3", db_filename, > check_same_thread=False) > > You can see the code at https://rep

Re: [Twisted-Python] How to correctly run Sqlite with Twisted?

2017-09-19 Thread Werner Thie
Aloha Goffi I'm using minimal code like the one below for MySQL interaction, should be easy to transition this to SQLite from twisted.internet import reactor, task, defer from store import Store #debugging func, printing the result on the console def _transformResult(result): ## print '###

Re: [Twisted-Python] How to correctly run Sqlite with Twisted?

2017-09-19 Thread Moshe Zadka
The best answer is probably https://github.com/alex/alchimia On Tue, Sep 19, 2017 at 1:59 PM Goffi wrote: > Hello, > > I'm using Sqlite3 module through Twisted's enterpirse.adbapi, I create the > ConnectionPool instance like this: > >self.dbpool = ConnectionPool("sqlite3", db_filename, > che

[Twisted-Python] How to correctly run Sqlite with Twisted?

2017-09-19 Thread Goffi
Hello, I'm using Sqlite3 module through Twisted's enterpirse.adbapi, I create the ConnectionPool instance like this: self.dbpool = ConnectionPool("sqlite3", db_filename, check_same_thread=False) You can see the code at https://repos.goffi.org/sat/file/tip/src/memory/sqlite.py Sometime, th

Re: [Twisted-Python] Changing procmon.ProcessMonitor.processes

2017-09-19 Thread Moshe Zadka
On Tue, Sep 19, 2017 at 3:51 AM ex vito wrote: > Other than that, again, per that section's rules, not being a commiter > myself, I'm in no position to approve such a change. I wonder, however, how > "urgent" such a final change is to you and why a deprecation cycle does not > fit your purpose (

Re: [Twisted-Python] Changing procmon.ProcessMonitor.processes

2017-09-19 Thread ex vito
On 2017-09-18, at 16:35, Moshe Zadka wrote: > On Mon, Sep 11, 2017 at 2:44 AM ex vito wrote: > Sidenote: A quick, mostly backwards compatible, change could probably add cwd > to the existing per-process tuple in self.processes as an extra item, > couldn't it? > > No. Most usage of this tuple