From 0e238399d1e11aa0b91e9a8235e9f9e47a842f04 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 12 Nov 2010 15:12:41 -0500 Subject: fix two references to a nonexistent function --- docs/narr/static.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/narr/static.rst b/docs/narr/static.rst index e350bc693..efeabd012 100644 --- a/docs/narr/static.rst +++ b/docs/narr/static.rst @@ -122,7 +122,7 @@ Generating Static Resource URLs When a :meth:`pyramid.configuration.Configurator.add_static_view` method is used to register a static resource directory, a special helper API named -:func:`pyramid.static_url` can be used to generate the appropriate URL for a +:func:`pyramid.url.static_url` can be used to generate the appropriate URL for a package resource that lives in one of the directories named by the static registration ``path`` attribute. @@ -246,8 +246,8 @@ be accessible as the static view against any model. This will also allow ``/static/foo.js`` to work, but it will allow for ``/anything/static/foo.js`` too, as long as ``anything`` itself is resolvable. -Note that you cannot use the :func:`pyramid.static_url` API to generate URLs -against resources made accessible by registering a custom static view. +Note that you cannot use the :func:`pyramid.url.static_url` API to generate +URLs against resources made accessible by registering a custom static view. .. warning:: -- cgit v1.2.3