[prev in list] [next in list] [prev in thread] [next in thread]
List: zope-db
Subject: RE: [Zope-DB] rollback / commit inside DTML : How To ??
From: Federico Di Gregorio <fog () initd ! org>
Date: 2002-10-10 15:19:00
[Download RAW message or body]
Il gio, 2002-10-10 alle 17:12, Smith, Neil (Worcester) ha scritto:
> Just create ZSQL methods with a commit and a rollback in them, then call
> them with a dtml-call just like you'd normally do with a SQL method.
yesss! good. this is the right way blow-up zope transation machinery
*and* the underlying db adapter (in case of psycopg, for example you
just *can't* call commit/rollback yourself, but you should use the
dbapi-2.0 methods to do it.)
--
Federico Di Gregorio
Debian GNU/Linux Developer & Italian Press Contact fog@debian.org
INIT.D Developer fog@initd.org
All'inizio ho scritto un programma proprietario, in esclusiva per il
cliente; è stato tristissimo, perchè mi ha succhiato un pezzo di
anima. -- Alessandro Rubini
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic