From 56df902d0a5bcd29a2b4c3dfafab9a09d6f0c29d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 8 Dec 2011 04:26:15 -0500 Subject: - New APIs: ``pyramid.path.AssetResolver`` and ``pyramid.path.DottedNameResolver``. The former can be used to resolve asset specifications, the latter can be used to resolve dotted names to modules or packages. --- docs/api/path.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/api/path.rst (limited to 'docs/api/path.rst') diff --git a/docs/api/path.rst b/docs/api/path.rst new file mode 100644 index 000000000..045d77da2 --- /dev/null +++ b/docs/api/path.rst @@ -0,0 +1,13 @@ +.. _path_module: + +:mod:`pyramid.path` +--------------------------- + +.. automodule:: pyramid.path + + .. autoclass:: DottedNameResolver + :members: + + .. autoclass:: AssetResolver + :members: + -- cgit v1.2.3 From 078859d058ac8c1617349a12ea29b9d1d0187485 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 8 Dec 2011 17:10:18 -0500 Subject: provide caller_path support for both asset resolver and dotted name resolver, make it the default --- docs/api/path.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/api/path.rst') diff --git a/docs/api/path.rst b/docs/api/path.rst index 045d77da2..d46c35d8e 100644 --- a/docs/api/path.rst +++ b/docs/api/path.rst @@ -5,6 +5,13 @@ .. automodule:: pyramid.path + .. attribute:: CALLER_PACKAGE + + A constant used by the constructor of + :class:`pyramid.path.DottedNameResolver` and + :class:`pyramid.path.AssetResolver` (see their docstrings for more + info). + .. autoclass:: DottedNameResolver :members: -- cgit v1.2.3 From de5d2a88ef64a3f59222be1bd369ce226bbc0171 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Mon, 7 Jan 2013 01:37:30 +0200 Subject: redundant statement: the links preceeding the statement target the info referred to --- docs/api/path.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'docs/api/path.rst') diff --git a/docs/api/path.rst b/docs/api/path.rst index d46c35d8e..814fc47d5 100644 --- a/docs/api/path.rst +++ b/docs/api/path.rst @@ -9,8 +9,7 @@ A constant used by the constructor of :class:`pyramid.path.DottedNameResolver` and - :class:`pyramid.path.AssetResolver` (see their docstrings for more - info). + :class:`pyramid.path.AssetResolver`. .. autoclass:: DottedNameResolver :members: -- cgit v1.2.3