[Zope] ZPatterns: Deleting objects from a Rack?
Scott Parish
sRp@srparish.net
Thu, 29 Jun 2000 02:07:31 +0000
--WYTEVAkct0FjGQmd
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Thus spake Chris Withers (chrisw@nipltd.com):
> Scott Parish wrote:
> > I'm not entirely clear how
> > asking the object to delete itself in this case is going to improve the
> > situation over just asking the rack to, but I think that was the intent.
>=20
> Okay, I see the intent now too, but I agree with you that I can't see
> what advantage asking the object to delete itself provides. Could
> someone explain please?
>=20
> Furthermore, even if there was an advantage to this, why can't the
> rack's delete method just be piped through to the object's delete
> method? (which I thought was common practice with Specialists)
>=20
Another thought i just had was that if you deleted by placing a call to the
Rack, then you couldn't allow the class to override manage_delete. You mig=
ht
want to do such (overriding) if you wanted it to clean up a catalog or perf=
orm
some other auxiliary function before disappearing.
sRp
--=20
Scott Parish
http://srparish.net
--WYTEVAkct0FjGQmd
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (OpenBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE5Wq9ZQIKxCnswXL0RAZ40AKDChuz9fKpkok85lmWrY3X48SRcRQCfdDHf
yq3FD0mv83MaFCwRV3W6RHY=
=XZWq
-----END PGP SIGNATURE-----
--WYTEVAkct0FjGQmd--