[CMF-checkins] CVS: CMF - Contentish.py:1.1.2.1

tseaver@digicool.com tseaver@digicool.com
Tue, 10 Apr 2001 13:29:31 -0400 (EDT)


Update of /cvs-repository/CMF/CMFCore/interfaces
In directory korak:/tmp/cvs-serv31842/CMFCore/interfaces

Modified Files:
      Tag: CMF-1_0-branch
	Contentish.py 
Log Message:


 - Make appropriate use of 'portal_url', instead of ad hockery.

 - Synch up interface definition of 'Contentish.getIcon' with
   reality.



--- Updated File Contentish.py in package CMF --
--- Contentish.py	2001/02/23 14:24:12	1.1
+++ Contentish.py	2001/04/10 17:29:29	1.1.2.1
@@ -92,7 +92,7 @@
     PortalContent implements this interface.
     """
     
-    def getIcon(self):
+    def getIcon(self, relative_to_portal=0):
         """
         This method returns the path to an object's icon. It is used 
         in the folder_contents view to generate an appropriate icon 
@@ -101,6 +101,10 @@
         If the content item does not define an attribute named "icon"
         this method will return the path "/misc_/dtmldoc.gif", which is 
         the icon used for DTML Documents.
+
+        If 'relative_to_portal' is true, return only the portion of
+        the icon's URL which finds it "within" the portal;  otherwise,
+        return it as an absolute URL.
         """
 
     def listActions(self):