[Zope-dev] More comments on ZPatterns

Scott Parish sRp@srparish.net
Thu, 6 Jul 2000 03:10:44 +0000


--envbJBWh7q8WU6mo
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Thus spake Phillip J. Eby (pje@telecommunity.com):

> >and when I ask one of my TableInfo instances for their footnote it
> >comes right out of MySQL! Cool. Now.. I can't seem to figure out how
> >to *change* the data in the database when the user 'edits' the
>=20
> Here's some more top-secret documentation...  Use a GenericTrigger to
> implement attribute changes.  Set up your trigger to be activated on obje=
ct
> changes, and set the trigger expression to call an SQL method, e.g.:
>=20

First off it is amazing what a rush it is to fight ZPatterns, and finualy s=
tart
winning. <g>

Anyway, Under Zope 2.2, the 'Upon' property of a trigger doesn't have a lis=
t=20
of 'event_kinds'.  I think this is related to an earlier post where i=20
complained about zope 2.2 not being able to get such values (for select=20
types) from aquisition, or in this case from a seperate property in its=20
class.  Has anybody thought of a way to address this problem, as it didn't
sound like the official zope distribution wants to act the way that would
allow the 'Upon' property to get its proper values right now. (no, i'm
not going to go off about that <g>) =20

Also, should i not be trying to use ZPatterns 4aX under Zope 2.2?  I thought
i read that to use triggers a person should use Zope 2.2, but it doesn't
appear this has been tested under 2.2. (although it is alpha, i haven't=20
forgotten that)

ZPatterns is starting to taste pretty sweet.  Keep up the good work!
sRp

--=20
Scott Parish
http://srparish.net/

--envbJBWh7q8WU6mo
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (OpenBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE5Y/ivQIKxCnswXL0RAe8zAJ9F2qQ9yH+CVRe1fKtnRkWoZCBOTQCeLVmp
OuFeNXf5p2VjjEYSffRFC0s=
=/uSP
-----END PGP SIGNATURE-----

--envbJBWh7q8WU6mo--