[Zope-dev] zpatterns-0.4a4

Phillip J. Eby pje@telecommunity.com
Mon, 26 Jun 2000 11:29:41 -0500


At 01:08 PM 6/26/00 +0400, Jephte CLAIN wrote:
>
>This code should (IMHO) read:
>
>def getItem(self, key):
>    if hasattr(self.aq_base,'retrieveItem'):
>        return self.retrieveItem(key=key) # XXX need DTML check?
>
>    for rack in self.rackList:
>        item = rack.__of__(self).getItem(key)
>	if item is not None:
>            return item
>    return None

Corrected for next release.