Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
89178443
Commit
89178443
authored
Nov 06, 2001
by
matt@zope.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated traversal hook to shut up on failures after a few have been logged.
parent
bd9013f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
lib/python/Products/Sessions/SessionDataManager.py
lib/python/Products/Sessions/SessionDataManager.py
+10
-2
No files found.
lib/python/Products/Sessions/SessionDataManager.py
View file @
89178443
...
...
@@ -233,15 +233,23 @@ class SessionDataManagerTraverser(NameCaller):
def __init__(self, requestSessionName, sdm):
self._requestSessionName = requestSessionName
self._sessionDataManager = sdm
self._v_errors=0
def __call__(self, container, request):
sdm = self._sessionDataManager.__of__(container)
# Yank our session & stuff into request
try:
session = sdm.getSessionData()
self._v_errors = 0
except:
LOG('
Session
Tracking
', WARNING, '
Session
automatic
traversal
'
'
failed
to
get
session
data
', error=sys.exc_info())
errors = getattr(self,"_v_errors", 0)
if errors < 4:
LOG('
Session
Tracking
', WARNING, '
Session
automatic
traversal
'
'
failed
to
get
session
data
', error=sys.exc_info())
if errors == 3:
LOG('
Session
Tracking
', WARNING, '
Suppressing
further
'
'
automatic
session
failure
error
messages
on
this
thread
')
self._v_errors = errors + 1
return # Throw our hands up but dont fail
if self._requestSessionName is not None:
request[self._requestSessionName] = session
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment