[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate -
interfaces.py:1.1
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sat Mar 13 16:02:54 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/pagetemplate
In directory cvs.zope.org:/tmp/cvs-serv31359/src/zope/app/pagetemplate
Added Files:
interfaces.py
Log Message:
Moved talesapi interfaces to zope.app.pagetemplate.interfaces.
=== Added File Zope3/src/zope/app/pagetemplate/interfaces.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.
#
##############################################################################
"""Interfaces for apis to make available to TALES
$Id: interfaces.py,v 1.1 2004/03/13 21:02:53 srichter Exp $
"""
from zope.app.dublincore.interfaces import IDCDescriptiveProperties
from zope.app.dublincore.interfaces import IDCTimes
class IZopeTalesAPI(IDCDescriptiveProperties, IDCTimes):
def name():
"""Return the object's name
This is the name the object is stored under in the container
it was accessed in.
"""
def title_or_name():
"""Return the title, if the is one, or the name otherwise
"""
def size():
"""Return a string representing the size of the object
This string could be a collection of digits or a descriptive
string of some sort. If the size can't be determined
(e.g. the object has no size), an empty string is returned.
"""
More information about the Zope3-Checkins
mailing list