Home | Trees | Indices | Help |
|
---|
|
.. _appobject: The `AppObject` class --------------------- The AppObject class is the base class for all dynamically loaded objects (application objects) accessible through the vregistry. We can find a certain number of attributes and methods defined in this class and common to all the application objects. .. autoclass:: AppObject
|
|||
traced_selection Typical usage is : |
|||
Selector base class for selector classes providing implementation for operators &, | and ~ |
|||
MultiSelector base class for compound selector classes |
|||
AndSelector and-chained selectors (formerly known as chainall) |
|||
OrSelector or-chained selectors (formerly known as chainfirst) |
|||
NotSelector negation selector |
|||
yes Return the score given as parameter, with a default score of 0.5 so any other selector take precedence. |
|||
AppObject This is the base class for CubicWeb application objects which are selected according to a context (usually at least a request and a result set). |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
TRACED_OIDS = None Simple <textarea>, will return an unicode string. |
|
use this decorator on your selectors so the becomes traceable with :class:`traced_selection` |
Most of the time, a simple score function is enough to build a selector. The :func:`objectify_selector` decorator turn it into a proper selector class:: @objectify_selector def one(cls, req, rset=None, **kwargs): return 1 class MyView(View): __select__ = View.__select__ & one() |
ensures NOTE: This should only be used locally in build___select__() XXX: then, why not do it ?? |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Oct 13 19:49:22 2010 | http://epydoc.sourceforge.net |