Ignore:
Timestamp:
15 May 2015, 08:56:17 (9 years ago)
Author:
Henrik Bettermann
Message:

Simplify headlines in doctests. Remove some API documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/catalog.py

    r11483 r12951  
    3232@implementer(IQuery)
    3333class KofaQuery(Query):
    34     """A hurry.query-like query that supports also ``apply``.
     34    """A `hurry.query.query.Query` compatible query that also supports
     35    retrival of plain ``Bree`` result sets as used inside a catalog.
     36
     37    Like `hurry.query.query.Query` objects, `KofaQuery` is some kind
     38    of a meta query or 'compound query' that can give the cataloged
     39    objects (or their int ids) matching one or more 'subqueries'.
     40
     41    This way you can search for objects (or their int ids) that match
     42    several criteria at the same time. See ``examples`` section below.
     43
     44    A singleton instance of this class is also available as global
     45    utility.
     46
     47    A hurry.query-like query that supports also ``apply``.
    3548    """
    3649    def apply(self, query):
    37         """Get a catalog's BTree set of intids conforming to a query.
     50        """Get the list of int ids (a `BTree` result set) for objects
     51        determined by ``query``.
     52
     53        The list of int ids is less expensive to compute than the
     54        complete search results and sufficient, for instance, when you
     55        only need the number of objects that match a query and not the
     56        objects themselves.
    3857        """
    3958        return query.apply()
Note: See TracChangeset for help on using the changeset viewer.