[Zope-Checkins] CVS: Zope/lib/python/Products/Sessions/stresstests - stresstestMultiThread.py:1.5
Chris McDonough
chrism@zope.com
Mon, 19 Aug 2002 15:50:18 -0400
Update of /cvs-repository/Zope/lib/python/Products/Sessions/stresstests
In directory cvs.zope.org:/tmp/cvs-serv24326/stresstests
Modified Files:
stresstestMultiThread.py
Log Message:
Added the capability for browser ids to be encoded in URLs.
When a set of knobs is set on the browser_id_manager "settings" screen,
("look for browser id name in..." and 'automatically encode browser ids..."),
a traversal hook is installed in the browser id manager's container which
causes a) the request to be searched for a browser id name and a browser
id as the first two elements of the URL path and b) for Zope-generated URLs
to contain these path elements.
Various documentation and interface updates. No interface methods
were harmed in the filming of this checkin, but a few were added or extended
with defaults.
=== Zope/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py 1.4 => 1.5 ===
--- Zope/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py:1.4 Wed Aug 14 18:25:10 2002
+++ Zope/lib/python/Products/Sessions/stresstests/stresstestMultiThread.py Mon Aug 19 15:50:17 2002
@@ -18,7 +18,7 @@
import ZODB # in order to get Persistence.Persistent working
import Acquisition
from Acquisition import aq_base
-from Products.Sessions.BrowserIdManager import BrowserIdManager
+from Products.Sessions.BrowserIdManager import BrowserIdManager, getNewBrowserId
from Products.Sessions.SessionDataManager import \
SessionDataManager, SessionDataManagerErr
from Products.Transience.Transience import \
@@ -149,7 +149,7 @@
self.conn = db.open()
self.app = self.conn.root()['Application']
self.app = makerequest.makerequest(self.app)
- token = self.app.browser_id_manager._getNewBrowserId()
+ token = getNewBrowserId()
self.app.REQUEST.browser_id_ = token
self.iters = iters
self.sdm_name = sdm_name