Re: [pylons-devel] Pylons 1.x maintenance

2015-07-20 Thread Andrew Shadura
Hi, On Jul 20, 2015 5:11 PM, "Steve Piercy" wrote: > "Take over" implies ownership. Is that what you mean? I mean being able to react promptly to security and compatibility issues, merge and review patches, tag and upload releases. The core team of Kallithea has necessary skills and experience,

[pylons-devel] peewee ORM

2015-07-20 Thread Jose Galvez
Hi everyone, I just recently started work on a project where I wanted to use PeeWee as my orm. I like peewee's simple yet powerful syntax and find it generally simple to use. That said I decided to write pyramid module to incorporte peewee into my project. it's still very raw and has no unit

[pylons-devel] Re: peewee ORM

2015-07-20 Thread Jonathan Vanasco
I'm not sure what `request.peewee_dbs()[db].connect()` does, but I would probably recommend against this db setup pattern that you're using. By doing this in a tween, every request that pyramid handles will do a connect/disconnect to all the databases you defined. One of the more popular patte

Re: [pylons-devel] Pylons 1.x maintenance

2015-07-20 Thread Steve Piercy
On 7/20/15 at 6:10 PM, and...@shadura.me (Andrew Shadura) pronounced: Hi, On Jul 20, 2015 5:11 PM, "Steve Piercy" wrote: "Take over" implies ownership. Is that what you mean? I mean being able to react promptly to security and compatibility issues, merge and review patches, tag and upload

Re: [pylons-devel] Pylons 1.x maintenance

2015-07-20 Thread Andrew Shadura
Hi, On 20 July 2015 at 22:47, Steve Piercy wrote: > To proceed, please contact Ben Bangert directly, as he is the owner of > Pylons the web framework, and work out any details. I don't have any > say in the matter; I'm just facilitating. > https://github.com/bbangert Okay, maybe I should try (a

[pylons-devel] Re: peewee ORM

2015-07-20 Thread Jose Galvez
Thanks for the advise I'll look into that. I was trying to figure out how best to get a db connection and make sure its closes properly. putting it an a tween seemed convienent, but I get what your saying about the unnessary load for every request especiualy if a connection to the database is n

[pylons-devel] Re: peewee ORM

2015-07-20 Thread Jose Galvez
Thank you for your suggestions honestly that had been bothering me too. I removed the tween from the code completly an in its place I added a request method of the same name as the database proxy object which opens a connection and then registers a final_callback method to close the connection.