appobject.py
branchstable
changeset 5315 2c23d2fd3b51
parent 5306 763319a51e72
child 5373 24a873060692
child 5421 8167de96c523
equal deleted inserted replaced
5314:86e5abbebfaf 5315:2c23d2fd3b51
    33     """Most of the time, a simple score function is enough to build a selector.
    33     """Most of the time, a simple score function is enough to build a selector.
    34     The :func:`objectify_selector` decorator turn it into a proper selector
    34     The :func:`objectify_selector` decorator turn it into a proper selector
    35     class::
    35     class::
    36 
    36 
    37         @objectify_selector
    37         @objectify_selector
    38         def one(cls, *args, **kwargs):
    38         def one(cls, req, rset=None, **kwargs):
    39             return 1
    39             return 1
    40 
    40 
    41         class MyView(View):
    41         class MyView(View):
    42             __select__ = View.__select__ & one()
    42             __select__ = View.__select__ & one()
    43 
    43