- Timestamp:
- 13 Nov 2014, 14:40:27 (10 years ago)
- Location:
- main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/catalog.txt
r7819 r11949 1 :mod:`waeup. kofa.catalog` -- Cataloging support Kofa1 :mod:`waeup.ikoba.catalog` -- Cataloging support Ikoba 2 2 **************************************************** 3 3 4 .. module:: waeup. kofa.catalog4 .. module:: waeup.ikoba.catalog 5 5 6 6 Components that support cataloging and searching objects inside a 7 Kofa site.7 Ikoba site. 8 8 9 9 .. :doctest: 10 .. :layer: waeup. kofa.testing.KofaUnitTestLayer10 .. :layer: waeup.ikoba.testing.IkobaUnitTestLayer 11 11 12 12 .. contents:: … … 15 15 ======= 16 16 17 :class:` KofaQuery`17 :class:`IkobaQuery` 18 18 ------------------ 19 19 20 .. class:: KofaQuery()20 .. class:: IkobaQuery() 21 21 22 22 .. attribute:: grok.implements(hurry.query.interfaces.IQuery) … … 25 25 retrival of plain ``Bree`` result sets as used inside a catalog. 26 26 27 Like `hurry.query.query.Query` objects, ` KofaQuery` is some kind27 Like `hurry.query.query.Query` objects, `IkobaQuery` is some kind 28 28 of a meta query or 'compound query' that can give the cataloged 29 29 objects (or their int ids) matching one or more 'subqueries'. … … 55 55 ------------------------------ 56 56 57 We can get a KofaQuery object by asking for an unnamed global utility57 We can get a IkobaQuery object by asking for an unnamed global utility 58 58 implementing `hurry.query.interfaces.IQuery`: 59 59 … … 62 62 >>> q = getUtility(IQuery) 63 63 >>> q 64 <waeup. kofa.catalog.KofaQuery object at 0x...>64 <waeup.ikoba.catalog.IkobaQuery object at 0x...> 65 65 66 66 This query can get 'subqueries' and delivers the objects found or … … 101 101 102 102 We also setup a `zope.intid.interfaces.IIntIds` utility. This is not 103 necessary for plain catalogs, but when we want to use KofaQuery (or103 necessary for plain catalogs, but when we want to use IkobaQuery (or 104 104 `hurry.query.query.Query` objects), as to get a unique mapping from 105 105 objects (stored in ZODB) to integer numbers (stored in catalogs), … … 204 204 205 205 This can be done by using the ``searchResults`` method of 206 `` KofaQuery``:206 ``IkobaQuery``: 207 207 208 208 >>> r2 = q.searchResults(subquery1)
Note: See TracChangeset for help on using the changeset viewer.