doc/book/en/devweb/controllers.rst
branchstable
changeset 7529 2fdc310be7cd
parent 6347 ef47a2100c66
child 7876 df15d194a134
equal deleted inserted replaced
7528:11659cbe5eea 7529:2fdc310be7cd
    14 (:mod:`cubicweb.web.views.basecontrollers`).
    14 (:mod:`cubicweb.web.views.basecontrollers`).
    15 
    15 
    16 `Browsing`:
    16 `Browsing`:
    17 
    17 
    18 * the View controller is associated with most browsing actions within a
    18 * the View controller is associated with most browsing actions within a
    19   CubicWeb application: it always instantiates a :ref:`the_main_template` and
    19   CubicWeb application: it always instantiates a
    20   lets the ResultSet/Views dispatch system build up the whole content; it
    20   :ref:`the_main_template_layout` and lets the ResultSet/Views dispatch system
    21   handles :exc:`ObjectNotFound` and :exc:`NoSelectableObject` errors that may
    21   build up the whole content; it handles :exc:`ObjectNotFound` and
    22   bubble up to its entry point, in an end-user-friendly way (but other
    22   :exc:`NoSelectableObject` errors that may bubble up to its entry point, in an
    23   programming errors will slip through)
    23   end-user-friendly way (but other programming errors will slip through)
    24 
    24 
    25 * the JSon controller (same module) provides services for Ajax calls,
    25 * the JSon controller (same module) provides services for Ajax calls,
    26   typically using JSON as a serialization format for input, and
    26   typically using JSON as a serialization format for input, and
    27   sometimes using either JSON or XML for output;
    27   sometimes using either JSON or XML for output;
    28 
    28