Commits

Anonymous committed 209cc1b Merge

Merge.

Comments (0)

Files changed (2)

akhet/urlgenerator.py

         I turn into an ordinary string attribute on the first access.
         This saves CPU cycles if I'm accessed often.
 
-        I return the application prefix of the URL. Append a slash to get the
-        home page, or append a slash and segments to get a sub-page.
+        I return the application prefix of the URL, ending in a slash. This
+        alone will get the home page, or append segments to get a sub-URL.
 
         If the constructor arg 'qualified' is true, I return
         ``request.application_url``, otherwise I return ``request.path``.

docs/migration.rst

 
 Making URLs to static files is trickier because the methods above won't
 work for that. ``${url.app}`` is the application's base URL, so you can do
-``${url.app}/subdir/filename.css`` to semi-hardcode the URL. (XXX Check if
-url.app ends with a slash.)
+``${url.app}subdir/filename.css`` to semi-hardcode the URL.
 
 Or you can switch to Pyramid's default way of serving static files
 (add_static_view), which exposes the "/static" prefix to the user. Then you can