On Wednesday, January 12, 2011, Chris McDonough <[email protected]> wrote: > On Wed, 2011-01-12 at 22:30 +0100, Eric Lemoine wrote: >> Hi >> >> In the "SQLAlchemy + URL Dispatch Wiki" tutorial zope.sqlalchemy and >> its ZopeTransactionExtension are used. The pyramid_routesalchemy Paste >> template also configures the application's Session with the >> ZopeTransactionExtension. Is this extension actually required? If not >> why do the tutorial and pyramid_routesalchemy make use of it? > > The intent is to provide a single point of commit responsibility, an > automation of a commit for a successful request and a rollback for a > request that causes an exception. The actual technology used to do that > is not really really that important; it happens to be repoze.tm2 and > ZopeTransactionExtension. > > If you want the double whammy of inconvenience of not having your > changes committed for you and you want to write code that commits before > the request is finished (perhaps too early, when the request isn't > actually known to be "successful"), you can disable it. ;-)
Ok thanks. I'm curious to know what the pyramid_sqla package uses. -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : [email protected] http://www.camptocamp.com -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
