[Zope-DB] rollback / commit inside DTML : How To ??
Federico Di Gregorio
fog@initd.org
10 Oct 2002 17:19:00 +0200
--=-69wAwj7qHp+om1yL3Ue8
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
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.)
--=20
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; =E8 stato tristissimo, perch=E8 mi ha succhiato un pezzo di
anima. -- Alessandro Rubini
--=-69wAwj7qHp+om1yL3Ue8
Content-Type: application/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQA9pZpkvcCgrgZGjesRAgGdAKC+Q4sUkqYUfES5GygPGLfGkkdniACgrbtO
8j78dSpn/6RFRccn64FFMpA=
=jqjt
-----END PGP SIGNATURE-----
--=-69wAwj7qHp+om1yL3Ue8--