Logo Search packages:      
Sourcecode: zope-advancedquery version File versions  Download package

def AdvancedQuery::sorting::Sorter::group (   self,
  seq 
)

group *seq* (a set) generating pairs (*value*, *subseq*).

All elements in *subseq* (a set) have *value* as sort value on this level.
The union of all *subseq* gives *seq*.

Elements not sorted on this level go into the last generated
pair with 'None' as value.

Reimplemented in AdvancedQuery::sorting::IndexSorter.

Definition at line 71 of file sorting.py.

00071                       :
    '''group *seq* (a set) generating pairs (*value*, *subseq*).

    All elements in *subseq* (a set) have *value* as sort value on this level.
    The union of all *subseq* gives *seq*.

    Elements not sorted on this level go into the last generated
    pair with 'None' as value.
    '''
    raise NotImplementedError


class IndexSorter(Sorter):


Generated by  Doxygen 1.6.0   Back to index