equal
deleted
inserted
replaced
1 |
1 |
2 .. _Views: |
2 .. _Views: |
3 |
3 |
4 Views |
4 Principles |
5 ----- |
5 ---------- |
6 |
6 |
7 This chapter aims to describe the concept of a `view` used all along |
7 We'll start with a description of the interface providing a basic |
8 the development of a web application and how it has been implemented |
8 understanding of the available classes and methods, then detail the |
9 in *CubicWeb*. |
9 view selection principle. |
10 |
|
11 We'll start with a description of the interface providing you with a |
|
12 basic understanding of the available classes and methods, then detail |
|
13 the view selection principle. |
|
14 |
10 |
15 A `View` is an object responsible for the rendering of data from the |
11 A `View` is an object responsible for the rendering of data from the |
16 model into an end-user consummable form. They typically churn out an |
12 model into an end-user consummable form. They typically churn out an |
17 XHTML stream, but there are views concerned with email other non-html |
13 XHTML stream, but there are views concerned with email other non-html |
18 outputs. |
14 outputs. |
81 * `EntityView`, view applying to lines or cell containing an entity (e.g. an eid) |
77 * `EntityView`, view applying to lines or cell containing an entity (e.g. an eid) |
82 * `StartupView`, start view that does not require a result set to apply to |
78 * `StartupView`, start view that does not require a result set to apply to |
83 * `AnyRsetView`, view applicable to any result set |
79 * `AnyRsetView`, view applicable to any result set |
84 |
80 |
85 Examples of views class |
81 Examples of views class |
86 ----------------------- |
82 ``````````````````````` |
87 |
83 |
88 - Using `templatable`, `content_type` and HTTP cache configuration |
84 - Using `templatable`, `content_type` and HTTP cache configuration |
89 |
85 |
90 .. sourcecode:: python |
86 .. sourcecode:: python |
91 |
87 |