[Checkins] SVN: Zope3/trunk/src/zope/app/intid/ Added a level of
indirection as to what BTree flavour the IntIds utility uses.
Albertas Agejevas
alga at akl.lt
Thu Feb 1 13:11:09 EST 2007
On Thu, Feb 01, 2007 at 06:52:53PM +0100, Bernd Dorn wrote:
> > def __init__(self):
> >- self.ids = OIBTree.OIBTree()
> >- self.refs = IOBTree.IOBTree()
> >+ self.ids = getUtility(IFactory, 'OIBTree')()
> >+ self.refs = getUtility(IFactory, 'IOBTree')()
> >
>
> you should use query utility and return the default if no util is
> foud, because i think lots of unit tests will fail because the setup
> is not correct
That is a neat idea. Committed in rev 72304.
Albertas
More information about the Checkins
mailing list