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
This commit is contained in:
parent
3e2c71873b
commit
9f76cccc38
1 changed files with 10 additions and 11 deletions
|
@ -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
|
||||
=============
|
||||
|
|
Loading…
Add table
Reference in a new issue