Author: cleverdevil
Date: Tue Jan 22 16:52:18 2008
New Revision: 4026
URL: http://trac.turbogears.org/changeset/4026

Log:
Added some comments to clarify the last checkin in the code itself, since it 
may be difficult to understand why this is necessary.

Modified:
   trunk/tg/__init__.py

Modified: trunk/tg/__init__.py
==============================================================================
--- trunk/tg/__init__.py        (original)
+++ trunk/tg/__init__.py        Tue Jan 22 16:52:18 2008
@@ -68,7 +68,10 @@
                 paste.registry.restorer.save_registry_state(environ)
                 start_response('200 OK', [('Content-type', 'text/plain')])
                 return ['%s' % paste.registry.restorer.get_request_id(environ)]
-
+        
+        # Pylons expects fresh instances of the controller on every request,
+        # so instantiate a new instance of the root controller, and let it
+        # handle the request.
         return self.root.__class__()(environ, start_response)
 
 

Reply via email to