Back to index

plone3  3.1.7
item.py
Go to the documentation of this file.
00001 from zope.interface import implements
00002 
00003 from zope.app.container.contained import Contained
00004 
00005 from Products.CMFCore.PortalContent import PortalContent
00006 from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl
00007 
00008 from plone.app.content.interfaces import IReindexOnModify
00009 
00010 class Item(PortalContent, DefaultDublinCoreImpl, Contained):
00011     """A non-containerish, CMFish item
00012     """
00013     
00014     implements(IReindexOnModify)
00015     
00016     def __init__(self, id=None, **kwargs):
00017         PortalContent.__init__(self, id, **kwargs)
00018         DefaultDublinCoreImpl.__init__(self, **kwargs)
00019         
00020         if id is not None:
00021             self.id = id