From 9f76cccc3839550aac8a0745fdf56db85c897f90 Mon Sep 17 00:00:00 2001 From: helmutm Date: Mon, 12 Mar 2007 11:09:21 +0000 Subject: [PATCH] move setup of testing site to separate module git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1637 fd906abe-77d9-0310-91a1-e0d9ade77398 --- expert/README.txt | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/expert/README.txt b/expert/README.txt index 2275004..74991bb 100644 --- a/expert/README.txt +++ b/expert/README.txt @@ -34,28 +34,25 @@ configuration): >>> len(concepts) + len(resources) 35 - >>> #from zope.app.catalog.interfaces import ICatalog - >>> #sorted(component.getUtility(ICatalog).keys()) - Type- and Text-based Queries ============================ >>> from loops.expert import query - >>> t = query.Title('ty*') - >>> list(t.apply()) + >>> qu = query.Title('ty*') + >>> list(qu.apply()) [0, 1, 39] - >>> t = query.Type('loops:*') - >>> len(list(t.apply())) + >>> qu = query.Type('loops:*') + >>> len(list(qu.apply())) 35 - >>> t = query.Type('loops:concept:predicate') - >>> len(list(t.apply())) + >>> qu = query.Type('loops:concept:predicate') + >>> len(list(qu.apply())) 6 - >>> t = query.Type('loops:concept:predicate') & query.Title('t*') - >>> list(t.apply()) + >>> qu = query.Type('loops:concept:predicate') & query.Title('t*') + >>> list(qu.apply()) [1] @@ -67,6 +64,8 @@ relations to other objects the expert package provides methods for selecting and filtering related objects using our basic querying syntax (that in turn is based on hurry.query). + >>> result = query.Children() + Fin de partie =============