docs/glossary.rst | ●●●●● patch | view | raw | blame | history | |
docs/narr/assets.rst | ●●●●● patch | view | raw | blame | history | |
docs/narr/renderers.rst | ●●●●● patch | view | raw | blame | history | |
docs/narr/resources.rst | ●●●●● patch | view | raw | blame | history | |
docs/narr/urldispatch.rst | ●●●●● patch | view | raw | blame | history | |
docs/tutorials/wiki2/basiclayout.rst | ●●●●● patch | view | raw | blame | history | |
pyramid/paster_templates/alchemy/+package+/models.py | ●●●●● patch | view | raw | blame | history | |
pyramid/paster_templates/routesalchemy/+package+/models.py | ●●●●● patch | view | raw | blame | history |
docs/glossary.rst
@@ -182,10 +182,10 @@ :ref:`urldispatch_chapter` for more information. context An resource in the resource tree that is found during :term:`traversal` A resource in the resource tree that is found during :term:`traversal` or :term:`URL dispatch` based on URL data; if it's found via traversal, it's usually a :term:`resource` object that is part of a resource tree; if it's found via :term:`URL dispatch`, it's a object manufactured on if it's found via :term:`URL dispatch`, it's an object manufactured on behalf of the route's "factory". A context resource becomes the subject of a :term:`view`, and often has security information attached to it. See the :ref:`traversal_chapter` chapter and the @@ -488,7 +488,7 @@ available as its ``__parent__`` attribute. root factory The "root factory" of an :app:`Pyramid` application is called The "root factory" of a :app:`Pyramid` application is called on every request sent to the application. The root factory returns the traversal root of an application. It is conventionally named ``get_root``. An application may supply a docs/narr/assets.rst
@@ -185,7 +185,7 @@ .. note:: The :ref:`static_directive` ZCML directive offers an declarative The :ref:`static_directive` ZCML directive offers a declarative equivalent to :meth:`~pyramid.config.Configurator.add_static_view`. Use of the :ref:`static_directive` ZCML directive is completely equivalent to using imperative configuration for the same purpose. docs/narr/renderers.rst
@@ -456,14 +456,14 @@ such as a template. - A renderer factory which expects to accept a token that does not represent a filesystem path or a asset specification in the ``name`` a filesystem path or an asset specification in the ``name`` attribute of the ``info`` object fed to its constructor. These renderer factories are registered with a ``name`` value that does not begin with a dot. These renderer factories are typically object serializers. .. sidebar:: Asset Specifications A asset specification is a colon-delimited identifier for a An asset specification is a colon-delimited identifier for an :term:`asset`. The colon separates a Python :term:`package` name from a package subpath. For example, the asset specification ``my.package:static/baz.css`` identifies the file named docs/narr/resources.rst
@@ -231,7 +231,7 @@ url = resource_url(resource, request) The ``request`` passed to ``resource_url`` in the above example is an instance of an :app:`Pyramid` :term:`request` object. instance of a :app:`Pyramid` :term:`request` object. If the resource referred to as ``resource`` in the above example was the root resource, and the host that was used to contact the server was docs/narr/urldispatch.rst
@@ -439,7 +439,7 @@ matched which contains a ``*traverse`` remainder marker in its pattern (see :ref:`using_traverse_in_a_route_pattern`). The ``traverse`` argument allows you to associate route patterns with an arbitrary traversal path without using a a ``*traverse`` remainder marker; instead you can use other without using a ``*traverse`` remainder marker; instead you can use other match information. Note that the ``traverse`` argument is ignored when attached to a route docs/tutorials/wiki2/basiclayout.rst
@@ -60,7 +60,7 @@ #. *Lines 13-14*. Register a :term:`route configuration` via the :meth:`pyramid.config.Configurator.add_route` method that will be used when the URL is ``/``. Since this route has an ``pattern`` equalling used when the URL is ``/``. Since this route has a ``pattern`` equalling ``/`` it is the "default" route. The argument named ``view`` with the value ``tutorial.views.my_view`` is the dotted name to a *function* we write (generated by the ``pyramid_routesalchemy`` template) that is given pyramid/paster_templates/alchemy/+package+/models.py
@@ -68,7 +68,7 @@ def populate(): session = DBSession() model = MyModel(name=u'test name',value=55) model = MyModel(name=u'test name', value=55) session.add(model) session.flush() transaction.commit() pyramid/paster_templates/routesalchemy/+package+/models.py
@@ -27,7 +27,7 @@ def populate(): session = DBSession() model = MyModel(name=u'root',value=55) model = MyModel(name=u'root', value=55) session.add(model) session.flush() transaction.commit()