-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martijn Jacobs wrote:
Hmm, that's strange.
Maybe if you call the __getitem__ function itself? :
return Folder.__getitem__(self, key)
It should be working though....
Unless this is *inside* your own implementaiton of '__getitem__', you should just be able to use the "square bracket" notation: return self[key] if you *are* inside that, then use the underlying API of your class, e.g.,:: return self._getOb(key) Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH7FJ2+gerLs4ltQ4RAuU6AJ987CUCCjFi7zEDe4qv11AOi41xvgCgz9qn BMf6Js7nPRSA24vWDnl4y2Q= =VdU5 -----END PGP SIGNATURE-----