[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - IRegisteredObject.py:1.1.2.1

Barry Warsaw barry@wooz.org
Thu, 13 Dec 2001 12:53:44 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv7964/lib/python/Zope/App/Security

Added Files:
      Tag: Zope-3x-branch
	IRegisteredObject.py 
Log Message:
Interface for registered objects


=== Added File Zope3/lib/python/Zope/App/Security/IRegisteredObject.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.

"""Things that can be registered in a Registry."""

from Interface import Interface

class IRegisteredObject(Interface):
    def getId():
        """Get the id of the registered object."""

    def getTitle():
        """Get the human readable title of the registered object.
        Must be a string, but it may be empty.
        """

    def getDescription():
        """Get the human readable description of the registered object.
        Must be a string, but it may be empty.
        """