Skip to content

Commit

Permalink
Change the family only in the test catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-rt committed Mar 11, 2018
1 parent 64b789d commit 15cf03a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/zc/relation/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ we are relying on a pattern: the dump must be called before the load.
>>> def loadRelations(token, catalog, cache):
... return _relations[token]
...
>>> catalog = zc.relation.catalog.Catalog(dumpRelations, loadRelations)
>>> catalog = zc.relation.catalog.Catalog(dumpRelations, loadRelations, family=BTrees.family64)
>>> catalog.addValueIndex(IParentage['child'], dumpPeople, loadPeople,
... btree=BTrees.family32.OO)
>>> catalog.addValueIndex(IParentage['parents'], dumpPeople, loadPeople,
Expand Down
2 changes: 1 addition & 1 deletion src/zc/relation/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __repr__(self):
@zope.interface.implementer(interfaces.ICatalog)
class Catalog(persistent.Persistent):

family = BTrees.family64
family = BTrees.family32
_listeners = _queryFactories = _searchIndexes = ()
_searchIndexMatches = None

Expand Down

0 comments on commit 15cf03a

Please sign in to comment.