There is a bug (a feature?) in Specialist.getItem in zpatterns-0.4a4:

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)
        return item

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

regards,
jephte clain
[EMAIL PROTECTED]

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to