Commits

Anonymous committed b5b3dd5

Bug in ``URLGenerator.app``: returns wrong value.

  • Participants
  • Parent commits a3f7026

Comments (0)

Files changed (2)

-1.0 (unreleased)
+1.1 (unreleased)
+----------------
+- Bug in ``URLGenerator.app``: returns wrong value.
+
+1.0 (2011-04-04)
 ----------------
 - App skeleton:
 
   + Simplify home page and add a Mako site template that can be easily
-    extended by the user.
+    extended by the user. New documentation chapters.
   + New default layout and stylesheet by Marcin Lulek (Ergo^), designed to
     be extensible and a learning tool.
   + Separate industry-standard "reset" stylesheet for cross-browser
     consistency.
   + Add "flash message" demo to home page.
-  + "Requirements" file for easy installation of dependencies.
+  + Add "requirements" file for easy installation of dependencies.
 
 1.0b2 (2011-03-19)
 ------------------

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, ending in a slash. This
-        alone will get the home page, or append segments to get a sub-URL.
+        I return the application prefix of the URL. Append a slash to get the
+        home page URL, or additional path segments to get a sub-URL.
 
         If the constructor arg 'qualified' is true, I return
-        ``request.application_url``, otherwise I return ``request.path``.
+        ``request.application_url``, otherwise I return ``request.script_name``.
         """
         if self.qualified:
             return self.request.application_url
         else:
-            return self.request.path
+            return self.request.script_name
 
     def route(self, route_name, *elements, **kw):
         """Generate a route URL.