> @@ -540,7 +518,8 @@
> for pub in pubs:
> self.checkPastDate(pub.datesuperseded)
> if supersededby is not None:
> - if isinstance(pub, BinaryPackagePublishingHistory):
> + if isinstance(
> + removeSecurityProxy(pub), BinaryPackagePublishingHistory):
> dominant = supersededby.binarypackagerelease.build
> else:
> dominant = supersededby.sourcepackagerelease
I think this is one occasion where you don't need to call removeSecurityProxy(): The Zope security machinery monkeypatches isinstance() so that a possibly existing security proxy is removed before the "real" isinstance function is called.
Hi James,
again, a nice branch!
Just one minor remark:
> @@ -540,7 +518,8 @@ ate(pub. datesuperseded) blishingHistory ): roxy(pub) , BinaryPackagePu blishingHistory ): binarypackagere lease.build sourcepackagere lease
> for pub in pubs:
> self.checkPastD
> if supersededby is not None:
> - if isinstance(pub, BinaryPackagePu
> + if isinstance(
> + removeSecurityP
> dominant = supersededby.
> else:
> dominant = supersededby.
I think this is one occasion where you don't need to call removeSecurityP roxy(): The Zope security machinery monkeypatches isinstance() so that a possibly existing security proxy is removed before the "real" isinstance function is called.