summaryrefslogtreecommitdiff
path: root/docs/tutorials/cmf/actions.rst
blob: 8af8e5fd41d8c91867d30fcbc876aada25aa0938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.. _actions_chapter:

=======
Actions
=======

In CMF, the "actions tool" along with "action providers" create an
extensible mechanism to show links in the CMF management UI that
invoke a particular behavior or which show a particular template.

:app:`Pyramid` itself has no such concept, and no package provides
a direct replacement.  Actions are such a generic concept that it's
simple to reimplement action-like navigation in a different way within
any given application.  For example, a module-scope global dictionary
which has keys that are action names, and values which are tuples of
(permission, link).  Take that concept and expand on it, and you'll
have some passable actions tool replacement within a single application.

The `repoze.bfg.viewgroup
<http://svn.repoze.org/repoze.bfg.viewgroup/trunk/>`_ package provides
some functionality for creating "view groups".  Each view in a
viewgroup can provide some snippet of HTML (e.g. a single "tab"), and
individual views (tabs) within the group which cannot be displayed to
the user due to the user's lack of permissions will be omitted from
the rendered output.

The :term:`repoze.lemonade` package provides "list item" support that
may be used to construct action lists.