[Zope] __getitem__ method in ZClass?

Peter Bengtsson mail@peterbe.com
Mon, 25 Feb 2002 00:39:55 +0100


If this particular product was a python based one, I could easily add a def 
__getitem__(self, key) method to my class so that one would be able to go:

<dtml-var "MyProductClassInstance['somekey']">

In a ZClass I can't add a Python Script called __getitem__ because of the 
underscores.
Any solutions to this?

Peter