62 messages in com.googlegroups.pylons-discussRe: Turbogears now based on Pylons!
FromSent OnAttachments
Spider27 Jun 2007 06:22 
rikl...@public.gmane.org27 Jun 2007 08:00 
Jonathan LaCour27 Jun 2007 08:10 
anderbubble27 Jun 2007 09:13 
Mark Ramm27 Jun 2007 12:39 
Mike Orr27 Jun 2007 13:45 
Mark Ramm27 Jun 2007 14:49 
Ian Bicking27 Jun 2007 14:56 
Jonathan LaCour27 Jun 2007 15:26 
Noah Gift27 Jun 2007 15:38 
Ian Bicking27 Jun 2007 15:41 
Mike Orr27 Jun 2007 15:45 
Jonathan LaCour27 Jun 2007 16:01 
Mike Orr27 Jun 2007 16:44 
Mike Orr27 Jun 2007 16:55 
Mark Ramm27 Jun 2007 17:06 
Uwe C. Schroeder27 Jun 2007 17:23 
Mike Orr27 Jun 2007 18:55 
Michael Bayer27 Jun 2007 20:46 
Michael Bayer27 Jun 2007 21:00 
Michael Bayer27 Jun 2007 21:09 
Michael Bayer27 Jun 2007 21:27 
Uwe C. Schroeder27 Jun 2007 22:40 
Mike Orr27 Jun 2007 23:09 
Mike Orr27 Jun 2007 23:40 
Uwe C. Schroeder28 Jun 2007 00:46 
Wichert Akkerman28 Jun 2007 00:54 
Mike Orr28 Jun 2007 01:33 
Uwe C. Schroeder28 Jun 2007 01:50 
Jonathan LaCour28 Jun 2007 05:55 
Jonathan LaCour28 Jun 2007 06:58 
Michael Bayer28 Jun 2007 07:12 
Michael Bayer28 Jun 2007 07:20 
Michael Bayer28 Jun 2007 07:27 
Michael Bayer28 Jun 2007 07:34 
Jonathan LaCour28 Jun 2007 07:53 
Ian Bicking28 Jun 2007 08:45 
Michael Bayer28 Jun 2007 09:31 
Cliff Wells28 Jun 2007 09:35 
Alberto Valverde28 Jun 2007 10:16 
Alberto Valverde28 Jun 2007 10:29 
Jonathan LaCour28 Jun 2007 10:32 
Ian Bicking28 Jun 2007 10:45 
Alberto Valverde28 Jun 2007 11:01 
Alberto Valverde28 Jun 2007 11:15 
Uwe C. Schroeder28 Jun 2007 11:32 
Mike Orr28 Jun 2007 11:52 
Alberto Valverde28 Jun 2007 11:58 
Noah Gift28 Jun 2007 12:02 
Jonathan LaCour28 Jun 2007 12:02 
Mike Orr28 Jun 2007 12:31 
Jonathan LaCour28 Jun 2007 12:48 
Noah Gift28 Jun 2007 15:12 
Michael Bayer28 Jun 2007 15:38 
Michael Bayer28 Jun 2007 15:42 
Noah Gift28 Jun 2007 16:41 
rikl...@public.gmane.org28 Jun 2007 17:28 
Uwe C. Schroeder28 Jun 2007 21:03 
Mike Orr28 Jun 2007 21:55 
Noah Gift29 Jun 2007 04:49 
Mike Orr29 Jun 2007 08:32 
Noah Gift29 Jun 2007 08:35 
Subject:Re: Turbogears now based on Pylons!
From:Jonathan LaCour (jona@public.gmane.org)
Date:06/27/2007 03:26:38 PM
List:com.googlegroups.pylons-discuss

Ian Bicking wrote:

Personally I'd like to see something a bit different:

* Way for a library to get "the" transaction manager. * Interface for that transaction manager, maybe copied from Zope. * Single convention for how to specify a database connection (ideally string-based). * Probably a way to get "the" configuration, so you can lazily get a connection based on the configured connection.

The frameworks would setup the transaction manager and configuration, and database frameworks would basically consume this information.

This would be pretty much ideal, and would satisfy my use cases very well. It would also allow framework authors to build in support for any ORM / database layer in an agnostic way, sort of like the Buffet API does for templating systems.

Then, we could also create a simple WSGI middleware for Pylons that gives it TurboGears-like automatic transaction start/commit/rollback on a per request basis. Only, we could make it configurable so that it didn't happen on read-only operations. All of this would be ORM / database layer agnostic, which would be very nice indeed.

The big issue for me with SAContext right now is that it uses a BoundMetaData and expects you to know your dburi "up-front" as it were. I don't like having my model tied to my configuration system. I'd rather have my model fetch its configuration from some third party source, such as this new package we are discussing, so that I can create desktop applications, command line utilities, etc. that share my pylons application's model, without having to ship pylons or a pylons configuration file. The last thing that Ian requests here would let me do that to a certain extent:

from db_buffet_api import config from sacontext import SAContext

sac = SAContext(dburi=config.dburi)

So, I am a big +1 on such a beast.