[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - RegisteredObject.py:1.1.2.1
Barry Warsaw
barry@wooz.org
Thu, 13 Dec 2001 12:59:03 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv9316/lib/python/Zope/App/Security
Added Files:
Tag: Zope-3x-branch
RegisteredObject.py
Log Message:
An implementation of IRegisteredObject, designed to be a mixin
=== Added File Zope3/lib/python/Zope/App/Security/RegisteredObject.py ===
# IRegisteredObject.py
#
# Copyright (c) 2001 Zope Coporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 1.1 (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 implementation of things that can be registered in a Registry."""
from Zope.App.Security.IRegisteredObject import IRegisteredObject
class RegisteredObject:
__implements__ = IRegisteredObject
def __init__(self, id, title, description):
self._id = id
self._title = title
self._description = description
def getId(self):
return self._id
def getTitle(self):
return self._title
def getDescription(self):
return self._description