[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - talesapi.py:1.3
   
    Jim Fulton
     
    jim@zope.com
       
    Fri, 23 May 2003 18:19:09 -0400
    
    
  
Update of /cvs-repository/Zope3/src/zope/app/interfaces
In directory cvs.zope.org:/tmp/cvs-serv20263/src/zope/app/interfaces
Modified Files:
	talesapi.py 
Log Message:
Added several attributes and methods to the Zope tales api.
=== Zope3/src/zope/app/interfaces/talesapi.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/talesapi.py:1.2	Wed Apr 16 04:26:34 2003
+++ Zope3/src/zope/app/interfaces/talesapi.py	Fri May 23 18:18:38 2003
@@ -15,11 +15,27 @@
 
 $Id$
 """
+from zope.app.interfaces.dublincore import IDCDescriptiveProperties
+from zope.app.interfaces.dublincore import IDCTimes
 
-from zope.interface import Interface
+class IZopeTalesAPI(IDCDescriptiveProperties, IDCTimes):
 
-class IZopeTalesAPI(Interface):
+    def name():
+        """Return the object's name
 
-    def title():
-        """Return an object title
+        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.
+        """
+