Commit 56062e87 authored by Andreas Jung's avatar Andreas Jung

removed zLOG dependency

parent fd8cd5d0
......@@ -22,6 +22,7 @@ import random
import sys
import os
import thread
import logging
from cgi import escape
import Globals
......@@ -40,7 +41,7 @@ from AccessControl import ClassSecurityInfo, getSecurityManager
from AccessControl.SecurityManagement import newSecurityManager, \
setSecurityManager
from AccessControl.User import nobody
from zLOG import LOG, WARNING, INFO
from TransientObject import TransientObject
from Fake import FakeIOBTree
......@@ -60,6 +61,8 @@ DEBUG = int(os.environ.get('Z_TOC_DEBUG', 0))
_marker = []
LOG = logging.getLogger('Transience')
def setStrict(on=''):
""" Turn on assertions (which may cause conflicts) """
global STRICT
......@@ -72,7 +75,7 @@ def TLOG(*args):
for arg in args:
sargs.append(str(arg))
msg = ' '.join(sargs)
LOG('Transience', INFO, msg)
LOG.info(msg)
constructTransientObjectContainerForm = HTMLFile(
'dtml/addTransientObjectContainer', globals())
......
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