[Zope] Re: have problem with managing objects within a external
product
Tres Seaver
tseaver at palladion.com
Tue Mar 13 10:45:34 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Allen Huang wrote:
> I found out what my problem is.
> in my code I please baseclass Item before Folder
> class ShpProjectClass(Item, Folder, Persistent, Implicit, CatalogAware):
> when I change the order, it worked normally
> class ShpProjectClass(Folder, Item, Persistent, Implicit, CatalogAware):
> but I don't understand why? could someone explain this to me?
Because 'Item' implements the "containerish" methods as no-ops: it
isn't intended to be anything other than a "leaf" object. Moving
'Folder' to the front means you are using *its* implmenetations of the
containerish methods, instead.
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF9rkO+gerLs4ltQ4RAj/5AJ46ej2Jqo9Q+EnEc+BdrylV+UwR+ACfdpgz
7vSgMGf8gqlMxs1TzA+9Lvc=
=RgEe
-----END PGP SIGNATURE-----
More information about the Zope
mailing list