Commit d0138823 authored by Andreas Jung's avatar Andreas Jung

death to zLOG

parent a502367d
...@@ -31,7 +31,7 @@ from urllib import quote ...@@ -31,7 +31,7 @@ from urllib import quote
from urlparse import urlparse, urlunparse from urlparse import urlparse, urlunparse
from ZPublisher.BeforeTraverse import registerBeforeTraverse, \ from ZPublisher.BeforeTraverse import registerBeforeTraverse, \
unregisterBeforeTraverse, queryBeforeTraverse unregisterBeforeTraverse, queryBeforeTraverse
import zLOG import logging
b64_trans = string.maketrans('+/', '-.') b64_trans = string.maketrans('+/', '-.')
b64_untrans = string.maketrans('-.', '+/') b64_untrans = string.maketrans('-.', '+/')
...@@ -49,6 +49,8 @@ ALLOWED_BID_NAMESPACES = ('form', 'cookies', 'url') ...@@ -49,6 +49,8 @@ ALLOWED_BID_NAMESPACES = ('form', 'cookies', 'url')
ADD_BROWSER_ID_MANAGER_PERM="Add Browser Id Manager" ADD_BROWSER_ID_MANAGER_PERM="Add Browser Id Manager"
TRAVERSAL_APPHANDLE = 'BrowserIdManager' TRAVERSAL_APPHANDLE = 'BrowserIdManager'
LOG = logging.getLogger('Zope.BrowserIdManager')
def constructBrowserIdManager( def constructBrowserIdManager(
self, id=BROWSERID_MANAGER_NAME, title='', idname='_ZopeId', self, id=BROWSERID_MANAGER_NAME, title='', idname='_ZopeId',
location=('cookies', 'form'), cookiepath='/', cookiedomain='', location=('cookies', 'form'), cookiepath='/', cookiedomain='',
...@@ -469,8 +471,7 @@ class BrowserIdManagerTraverser(Persistent): ...@@ -469,8 +471,7 @@ class BrowserIdManagerTraverser(Persistent):
# fail if we cannot find a browser id manager (that means this # fail if we cannot find a browser id manager (that means this
# instance has been "orphaned" somehow) # instance has been "orphaned" somehow)
if browser_id_manager is None: if browser_id_manager is None:
zLOG.LOG('Browser Id Manager Traverser', zLOG.ERROR, LOG.error('Could not locate browser id manager!')
'Could not locate browser id manager!')
return return
try: try:
...@@ -498,8 +499,7 @@ class BrowserIdManagerTraverser(Persistent): ...@@ -498,8 +499,7 @@ class BrowserIdManagerTraverser(Persistent):
request._script.append(quote(bid_name)) request._script.append(quote(bid_name))
request._script.append(quote(browser_id)) request._script.append(quote(browser_id))
except: except:
zLOG.LOG('Browser Id Manager Traverser', zLOG.ERROR, LOG.error('indeterminate error', exc_info=sys.exc_info())
'indeterminate error', error=sys.exc_info())
def getB64TStamp( def getB64TStamp(
b2a=binascii.b2a_base64,gmtime=time.gmtime, time=time.time, b2a=binascii.b2a_base64,gmtime=time.gmtime, time=time.time,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment