[CMF-checkins] CVS: CMF/CMFCore/interfaces - Contentish.py:1.5

Yvo Schubbe schubbe@web.de
Mon, 6 Jan 2003 15:37:45 -0500


Update of /cvs-repository/CMF/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv20059/CMFCore/interfaces

Modified Files:
	Contentish.py 
Log Message:
Merged yuppie-collector096-branch:
- Cleaned up Interfaces and API Help. (Collector #96)
- Removed deprecated 'register' module and interface.

=== CMF/CMFCore/interfaces/Contentish.py 1.4 => 1.5 ===
--- CMF/CMFCore/interfaces/Contentish.py:1.4	Wed Nov 28 14:06:24 2001
+++ CMF/CMFCore/interfaces/Contentish.py	Mon Jan  6 15:37:41 2003
@@ -10,9 +10,19 @@
 # FOR A PARTICULAR PURPOSE
 # 
 ##############################################################################
-import Interface
+""" Contentish type interface.
 
-class Contentish(Interface.Base):
+$Id$
+"""
+
+try:
+    from Interface import Interface
+except ImportError:
+    # for Zope versions before 2.6.0
+    from Interface import Base as Interface
+
+
+class Contentish(Interface):
     """
     General interface for "contentish" items.
 
@@ -22,33 +32,6 @@
     PortalContent implements this interface.
     """
     
-    def getIcon(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 
-        for the items found in the folder.
-
-        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():
-        """
-        listAction returns a tuple containing dictionaries that describe 
-        a specific "action". An "action" shows up as a link in the PTK
-        toolbox which has a title, a URL, a category (the action can be 
-        applied at the object- or user-level or everywhere) and the 
-        permissions needed to show the action link.
-
-        listActions can be used to provide actions specific to your 
-        content object.
-        """
-
     def SearchableText():
         """
         SearchableText is called to provide the Catalog with textual 
@@ -56,10 +39,4 @@
         by concatenating the string attributes of your content class. This
         string can then be used by the catalog to index your document and
         make it findable through the catalog.
-        """
-
-    def allowedRolesAndUsers(permission='View'):
-        """
-        Return a list of roles and users with View permission.
-        Used by PortalCatalog to filter out items you're not allowed to see.
         """