summaryrefslogtreecommitdiff
path: root/docs/glossary.rst
blob: 99c72a5a2f03abcb058dc049a9c0a8a0f0731ac2 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.. _glossary:

============================
 :mod:`repoze.bfg` Glossary
============================

.. glossary::

  request
    A ``WebOb`` request object.
  response
    An object that has three attributes: app_iter (representing an
    iterable body), headerlist (representing the http headers sent
    upstream), and status (representing the http status string).  This
    is the interface defined for ``WebOb`` response objects.
  setuptools
    `Setuptools <http://peak.telecommunity.com/DevCenter/setuptools>`_
    builds on Python's ``distutils`` to provide easier building,
    distribution, and installation of packages.
  view
    A "view" is a callable which returns a response object.  It should
    accept two values: context and request.
  view name
    The "URL name" of a view, e.g "index.html".  If a view is
    configured without a name, its name is considered to be the empty
    string (which implies the "default view").
  virtualenv
    An isolated Python environment.  Allows you to control which
    packages are used on a particular project by cloning your main
    Python.  `virtualenv <http://pypi.python.org/pypi/virtualenv>`_
    was created by Ian Bicking.
  model
    An object representing data in the system.  A model is part of the
    object graph traversed by the system.  Models are traversed to
    determine a context.
  context
    A model in the system that is found during traversal; it becomes
    the subject of a view.
  application registry
    A registry which maps model types to views, as well as performing
    other application-specific component registrations.
  template
    A file that is capable of representing some text when rendered.
  interface
    An attribute of a model object that determines its type.
  security policy
    An object that provides a mechanism to check authorization using
    authentication data and a permission associated with a model.  It
    essentially returns "true" if the combination of the authorization
    information in the model (e.g. an ACL) and the authentication data
    in the request (e.g. the REMOTE_USER) allow the action implied by
    the permission associated with the view (e.g. "add").
  principal
    A user id or group id.
  permission
    A permission is a string token that is associated with a view name
    and a model type by the developer.  Models are decorated with
    security declarations (e.g. ACLs), which reference these tokens
    also.  A security policy attempts to match the view permission
    against the model's statements about which permissions are granted
    to which principal to answer the question "is this user allowed to
    do this".
  WSGI
    `Web Server Gateway Interface <http://wsgi.org/>`_.  This is a
    Python standard for connecting web applications to web servers,
    similar to the concept of Java Servlets.