[Zope3-checkins] CVS: Zope3/src/zope/publisher/interfaces - logginginfo.py:1.1
Viktorija Zaksiene
ryzaja@codeworks.lt
Tue, 22 Jul 2003 11:09:50 -0400
Update of /cvs-repository/Zope3/src/zope/publisher/interfaces
In directory cvs.zope.org:/tmp/cvs-serv14056/src/zope/publisher/interfaces
Added Files:
logginginfo.py
Log Message:
Vika and Bjorn Tillenius:
Made HTTPRequest.setUser use an adapter to choose what name to log. We don't want to
make policy decisions there.
=== Added File Zope3/src/zope/publisher/interfaces/logginginfo.py ===
##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""An interface for LoggingInfo.
$Id: logginginfo.py,v 1.1 2003/07/22 15:09:44 ryzaja Exp $
"""
from zope.interface import Interface
class ILoggingInfo(Interface):
"""Provides information about the object to be included in the logs.
In the class we need an __init__ method that accepts an object.
"""
def getLogMessage():
"""Returns a log string made from the object it was adapted from.
"""