doc/book/en/devweb/views/baseviews.rst
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 28 Jun 2011 17:59:31 +0200
changeset 7570 648bf83945a5
parent 6303 1aad5389c013
child 7836 0ada13ce2e16
permissions -rw-r--r--
[etwist] log missing file even in debug mode
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1714
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
     1
.. -*- coding: utf-8 -*-
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
     2
5312
d2dbba898a96 [doc/book] misc on views, docstrings
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 5266
diff changeset
     3
Base views
d2dbba898a96 [doc/book] misc on views, docstrings
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 5266
diff changeset
     4
----------
1714
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
     5
5312
d2dbba898a96 [doc/book] misc on views, docstrings
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 5266
diff changeset
     6
*CubicWeb* provides a lot of standard views, that can be found in
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
     7
:mod:`cubicweb.web.views` sub-modules.
1714
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
     8
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
     9
A certain number of views are used to build the web interface, which apply to one
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    10
or more entities. As other appobject, Their identifier is what distinguish them
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    11
from each others. The most generic ones, found in
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    12
:mod:`cubicweb.web.views.baseviews`, are described below.
1714
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    13
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    14
HTML views
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    15
~~~~~~~~~~
5222
ed6905d98a5e [doc/book] more flesh to views/primary view
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 3258
diff changeset
    16
1714
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    17
Special views
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    18
`````````````
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    19
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    20
*noresult*
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    21
    This view is the default view used when no result has been found
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    22
    (e.g. empty result set).
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    23
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    24
*final*
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    25
    Display the value of a cell without trasnformation (in case of a non final
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    26
    entity, we see the eid). Applicable on any result set.
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    27
5312
d2dbba898a96 [doc/book] misc on views, docstrings
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 5266
diff changeset
    28
.. note::
d2dbba898a96 [doc/book] misc on views, docstrings
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 5266
diff changeset
    29
d2dbba898a96 [doc/book] misc on views, docstrings
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 5266
diff changeset
    30
   `final` entities are merely attributes.
d2dbba898a96 [doc/book] misc on views, docstrings
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 5266
diff changeset
    31
1714
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    32
*null*
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    33
    This view is the default view used when nothing needs to be rendered.
5312
d2dbba898a96 [doc/book] misc on views, docstrings
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 5266
diff changeset
    34
    It is always applicable.
1714
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
    35
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    36
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    37
Entity views
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    38
````````````
5312
d2dbba898a96 [doc/book] misc on views, docstrings
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 5266
diff changeset
    39
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    40
*incontext, outofcontext*
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    41
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    42
    Those are used to display a link to an entity, whose label depends on the
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    43
    entity having to be displayed in or out of context (of another entity): some
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    44
    entities make sense in the context of another entity. For instance, the
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    45
    `Version` of a `Project` in forge. So one may expect that 'incontext' will
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    46
    be called when display a version from within the context of a project, while
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    47
    'outofcontext"' will be called in other cases. In our example, the
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    48
    'incontext' view of the version would be something like '0.1.2', while the
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    49
    'outofcontext' view would include the project name, e.g. 'baz 0.1.2' (since
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    50
    only a version number without the associated project doesn't make sense if
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    51
    you don't know yet that you're talking about the famous 'baz' project. |cubicweb|
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    52
    tries to make guess and call 'incontext'/'outofcontext' nicely. When it can't
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    53
    know, the 'oneline' view should be used.
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    54
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    55
    By default it respectively produces the result of `textincontext` and
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    56
    `textoutofcontext` wrapped in a link leading to the primary view of the
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    57
    entity.
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    58
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    59
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    60
*oneline*
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    61
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    62
    This view is used when we can't tell if the entity should be considered as
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    63
    displayed in or out of context. By default it produces the result of `text`
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    64
    in a link leading to the primary view of the entity.
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    65
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    66
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    67
List
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    68
`````
5222
ed6905d98a5e [doc/book] more flesh to views/primary view
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 3258
diff changeset
    69
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    70
*list*
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    71
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    72
    This view displays a list of entities by creating a HTML list (`<ul>`) and
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    73
    call the view `listitem` for each entity of the result set. The 'list' view
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    74
    will generate html like:
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    75
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    76
    .. sourcecode:: html
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    77
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    78
      <ul class="section">
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    79
        <li>"result of 'subvid' view for a row</li>
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    80
        ...
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    81
      </ul>
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    82
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    83
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    84
*simplelist*
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    85
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    86
  This view is not 'ul' based, and rely on div behaviour to separate items. html
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    87
  will look like
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    88
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    89
    .. sourcecode:: html
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    90
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    91
      <div class="section">"result of 'subvid' view for a row</div>
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    92
      ...
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    93
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    94
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    95
  It relies on base :class:`~cubicweb.view.View` class implementation of the
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    96
  :meth:`call` method to insert those <div>.
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
    97
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
    98
5222
ed6905d98a5e [doc/book] more flesh to views/primary view
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 3258
diff changeset
    99
*sameetypelist*
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
   100
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   101
    This view displays a list of entities of the same type, in HTML section
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   102
    (`<div>`) and call the view `sameetypelistitem` for each entity of the result
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   103
    set. It's designed to get a more adapted global list when displayed entities
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   104
    are all of the same type.
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   105
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
   106
3258
6536ee4f37f7 update the documentation
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 2474
diff changeset
   107
*csv*
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   108
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   109
    This view displays each entity in a coma separated list. It is NOT related to
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   110
    the well-known text file format.
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   111
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   112
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   113
Those list view can be given a 'subvid' arguments, telling the view to use of
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   114
each item in the list. When not specified, the value of the 'redirect_vid'
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   115
attribute of :class:`ListItemView` (for 'listview') or of :class:`SimpleListView`
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   116
will be used. This default to 'outofcontext' for 'list' / 'incontext' for
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   117
'simplelist'
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   118
3258
6536ee4f37f7 update the documentation
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 2474
diff changeset
   119
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
   120
Text entity views
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
   121
~~~~~~~~~~~~~~~~~
5312
d2dbba898a96 [doc/book] misc on views, docstrings
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 5266
diff changeset
   122
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   123
Basic html view have some variantsto be used when generating raw text, not html
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   124
(for notifications for instance).
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   125
1714
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
   126
*text*
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   127
2474
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
   128
    This is the simplest text view for an entity. By default it returns the
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
   129
    result of the `.dc_title` method, which is cut to fit the
23e8aa37b2df fix/enhance baseview doc
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 2175
diff changeset
   130
    `navigation.short-line-size` property if necessary.
1714
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
   131
a721966779be new book layout, do not compile yet
sylvain.thenault@logilab.fr
parents:
diff changeset
   132
*textincontext, textoutofcontext*
6303
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   133
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   134
    Similar to the `text` view, but called when an entity is considered out or in
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   135
    context (see description of incontext/outofcontext html views for more
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   136
    information on this). By default it returns respectively the result of the
1aad5389c013 [book] backport documentation about primary/base views sent on the list
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5394
diff changeset
   137
    methods `.dc_title()` and `.dc_long_title()` of the entity.