relation package now with a relations registry using catalog indexes

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@651 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2005-11-02 13:53:32 +00:00
parent 2f70bb2ce5
commit ae577ac96f

View file

@ -125,3 +125,12 @@ registry and query it:
>>> clarkRels = relations.query(first=clark)
>>> len(clarkRels)
1
>>> clarkRels[0].second == washington
True
>>> nyRels = relations.query(second=newyork)
>>> len(nyRels)
2