equal
deleted
inserted
replaced
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 |