1 #:organization: Logilab |
1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 #:copyright: 2009-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 #:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
4 #:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
4 # This file is part of CubicWeb. |
5 |
5 # |
6 """This module (``cubicweb.web.uicfg``) regroups a set of structures that may be used to configure |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
7 various options of the generated web interface. |
7 # terms of the GNU Lesser General Public License as published by the Free |
|
8 # Software Foundation, either version 2.1 of the License, or (at your option) |
|
9 # any later version. |
|
10 # |
|
11 # logilab-common is distributed in the hope that it will be useful, but WITHOUT |
|
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|
13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
|
14 # details. |
|
15 # |
|
16 # You should have received a copy of the GNU Lesser General Public License along |
|
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
|
18 """This module (``cubicweb.web.uicfg``) regroups a set of structures that may be |
|
19 used to configure various options of the generated web interface. |
8 |
20 |
9 To configure the interface generation, we use ``RelationTag`` objects. |
21 To configure the interface generation, we use ``RelationTag`` objects. |
10 |
22 |
11 Index view configuration |
23 Index view configuration |
12 ```````````````````````` |
24 ```````````````````````` |
25 simple boolean relation tags used to control the "add entity" submenu. |
37 simple boolean relation tags used to control the "add entity" submenu. |
26 Relations whose rtag is True will appears, other won't. |
38 Relations whose rtag is True will appears, other won't. |
27 |
39 |
28 .. sourcecode:: python |
40 .. sourcecode:: python |
29 |
41 |
30 # Adds all subjects of the entry_of relation in the add menu of the ``Blog`` primary view |
42 # Adds all subjects of the entry_of relation in the add menu of the ``Blog`` |
|
43 # primary view |
31 uicfg.actionbox_appearsin_addmenu.tag_object_of(('*', 'entry_of', 'Blog'), True) |
44 uicfg.actionbox_appearsin_addmenu.tag_object_of(('*', 'entry_of', 'Blog'), True) |
32 |
45 |
33 |
46 |
34 """ |
47 """ |
35 __docformat__ = "restructuredtext en" |
48 __docformat__ = "restructuredtext en" |