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:
helmutm 2007-03-12 11:09:21 +00:00
parent 3e2c71873b
commit 9f76cccc38

View file

@ -34,28 +34,25 @@ configuration):
>>> len(concepts) + len(resources) >>> len(concepts) + len(resources)
35 35
>>> #from zope.app.catalog.interfaces import ICatalog
>>> #sorted(component.getUtility(ICatalog).keys())
Type- and Text-based Queries Type- and Text-based Queries
============================ ============================
>>> from loops.expert import query >>> from loops.expert import query
>>> t = query.Title('ty*') >>> qu = query.Title('ty*')
>>> list(t.apply()) >>> list(qu.apply())
[0, 1, 39] [0, 1, 39]
>>> t = query.Type('loops:*') >>> qu = query.Type('loops:*')
>>> len(list(t.apply())) >>> len(list(qu.apply()))
35 35
>>> t = query.Type('loops:concept:predicate') >>> qu = query.Type('loops:concept:predicate')
>>> len(list(t.apply())) >>> len(list(qu.apply()))
6 6
>>> t = query.Type('loops:concept:predicate') & query.Title('t*') >>> qu = query.Type('loops:concept:predicate') & query.Title('t*')
>>> list(t.apply()) >>> list(qu.apply())
[1] [1]
@ -67,6 +64,8 @@ relations to other objects the expert package provides methods
for selecting and filtering related objects using our basic querying for selecting and filtering related objects using our basic querying
syntax (that in turn is based on hurry.query). syntax (that in turn is based on hurry.query).
>>> result = query.Children()
Fin de partie Fin de partie
============= =============