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:
parent
2f70bb2ce5
commit
ae577ac96f
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue