[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - zapi.py:1.1
Jim Fulton
jim@zope.com
Fri, 23 May 2003 18:18:14 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces
In directory cvs.zope.org:/tmp/cvs-serv20182/src/zope/app/interfaces
Added Files:
zapi.py
Log Message:
Began the implementation of the zapi convenience module.
=== Added File Zope3/src/zope/app/interfaces/zapi.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.
#
##############################################################################
"""Interface definition for the Zope convenience API module
$Id: zapi.py,v 1.1 2003/05/23 22:18:13 jim Exp $
"""
from zope.component.interfaces import IComponentArchitecture
from zope.proxy.interfaces.context import IContextDecorator
class IZAPI(
IComponentArchitecture,
IContextDecorator,
):
"""Convenmience API for creating Zope applications.
"""
def name(object):
"""Return the object's name
This is the name the object is stored under in the container
it was accessed in. If the name is unknown, None is returned.
"""