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
d0138823
Commit
d0138823
authored
May 12, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
death to zLOG
parent
a502367d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/python/Products/Sessions/BrowserIdManager.py
lib/python/Products/Sessions/BrowserIdManager.py
+5
-5
No files found.
lib/python/Products/Sessions/BrowserIdManager.py
View file @
d0138823
...
...
@@ -31,7 +31,7 @@ from urllib import quote
from
urlparse
import
urlparse
,
urlunparse
from
ZPublisher.BeforeTraverse
import
registerBeforeTraverse
,
\
unregisterBeforeTraverse
,
queryBeforeTraverse
import
zLOG
import
logging
b64_trans
=
string
.
maketrans
(
'+/'
,
'-.'
)
b64_untrans
=
string
.
maketrans
(
'-.'
,
'+/'
)
...
...
@@ -49,6 +49,8 @@ ALLOWED_BID_NAMESPACES = ('form', 'cookies', 'url')
ADD_BROWSER_ID_MANAGER_PERM="Add Browser Id Manager"
TRAVERSAL_APPHANDLE = '
BrowserIdManager
'
LOG = logging.getLogger('
Zope
.
BrowserIdManager
')
def constructBrowserIdManager(
self, id=BROWSERID_MANAGER_NAME, title='', idname='
_ZopeId
',
location=('
cookies
', '
form
'), cookiepath='
/
', cookiedomain='',
...
...
@@ -469,8 +471,7 @@ class BrowserIdManagerTraverser(Persistent):
# fail if we cannot find a browser id manager (that means this
# instance has been "orphaned" somehow)
if
browser_id_manager
is
None
:
zLOG
.
LOG
(
'Browser Id Manager Traverser'
,
zLOG
.
ERROR
,
'Could not locate browser id manager!'
)
LOG
.
error
(
'Could not locate browser id manager!'
)
return
try
:
...
...
@@ -498,8 +499,7 @@ class BrowserIdManagerTraverser(Persistent):
request
.
_script
.
append
(
quote
(
bid_name
))
request
.
_script
.
append
(
quote
(
browser_id
))
except
:
zLOG
.
LOG
(
'Browser Id Manager Traverser'
,
zLOG
.
ERROR
,
'indeterminate error'
,
error
=
sys
.
exc_info
())
LOG
.
error
(
'indeterminate error'
,
exc_info
=
sys
.
exc_info
())
def
getB64TStamp
(
b2a
=
binascii
.
b2a_base64
,
gmtime
=
time
.
gmtime
,
time
=
time
.
time
,
...
...
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