Robert Brewer avatar Robert Brewer committed fafafa6

1. Sessionfilter now off by default.
2. Profiling now on by default for test suite.

Comments (0)

Files changed (5)

cherrypy/_cpconfig.py

     'session.cookieName': 'CherryPySession',
     'session.storageFileDir': '',
     
-    'sessionFilter.on': True,
+    'sessionFilter.on': False,
     'sessionFilter.timeout': 60,
     'sessionFilter.cleanUpDelay': 60,
     'sessionFilter.storageType' : 'ram',

cherrypy/test/test.py

                    'server.threadPool': 10,
                    'server.logToScreen': False,
                    'server.environment': "production",
-##                   'profiling.on': True,
+                   'profiling.on': True,
                    }
     
     for name, server in [("Serverless", None),

cherrypy/test/test_tutorials.py

                          '(<a href="./">back</a>)')
     
     def test08Sessions(self):
-        load_tut_module("tut08_sessions")
+        load_tut_module("tut08_sessions")
+        cpg.config.update({"/": {"sessionFilter.on": True}})
         
         helper.request('/')
         self.assertEqual(cpg.response.body,
     
     def test10SessionFilter(self):
         load_tut_module("tut10_sessionfilter")
+        cpg.config.update({"/": {"sessionFilter.on": True}})
         
         helper.request('/')
         self.assert_("viewed this page 1 times" in cpg.response.body)

cherrypy/tutorial/tut08_sessions.py

 
 
 cpg.root = HitCounter()
-
+cpg.config.update({'/': {'sessionFilter.on': True}})
 
 if __name__ == '__main__':
     cpg.config.update(file = 'tutorial.conf')

cherrypy/tutorial/tut10_sessionfilter.conf

-[/]
-server.socketPort = 8080
-server.threadPool = 10
-server.environment = "production"
-
-# by default we get
-# sessionFilter.on=True
-# sessionFilter.new='sessionMap'
-# sessionMap.storageType='ram'
-
-[/admin]
-# this tell CherryPy to create a session,
-# named 'adminSession' and to store the data in ram
-sessionFilter.new='adminSession'
-adminSession.storageType='ram'
-
-[/forum]
-sessionFilter.new='forumSession'
-forumSession.storageType='ram'
+[/]
+server.socketPort = 8080
+server.threadPool = 10
+server.environment = "production"
+
+sessionFilter.on=True
+# by default we get
+# sessionFilter.new='sessionMap'
+# sessionMap.storageType='ram'
+
+[/admin]
+# this tell CherryPy to create a session,
+# named 'adminSession' and to store the data in ram
+sessionFilter.new='adminSession'
+adminSession.storageType='ram'
+
+[/forum]
+sessionFilter.new='forumSession'
+forumSession.storageType='ram'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.