Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
CMFCore.PortalContent.PortalContent Class Reference
Inheritance diagram for CMFCore.PortalContent.PortalContent:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.PortalContent.PortalContent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def failIfLocked
def SearchableText
def __call__

Static Public Attributes

tuple manage_options
tuple security = ClassSecurityInfo()

Static Private Attributes

tuple __implements__ = (z2IContentish, z2IWriteLock, DynamicType.__implements__)

Detailed Description

Base class for portal objects.

    Provides hooks for reviewing, indexing, and CMF UI.

    Derived classes must implement the interface described in
    interfaces/DublinCore.py.

Definition at line 36 of file PortalContent.py.


Member Function Documentation

Invokes the default view.

Definition at line 91 of file PortalContent.py.

00091 
00092     def __call__(self):
00093         """ Invokes the default view.
00094         """
00095         ti = self.getTypeInfo()
00096         method_id = ti and ti.queryMethodID('(Default)', context=self)
00097         if method_id and method_id!='(Default)':
00098             method = getattr(self, method_id)
00099             if getattr(aq_base(method), 'isDocTemp', 0):
00100                 return method(self, self.REQUEST, self.REQUEST['RESPONSE'])
00101             else:
00102                 return method()
00103         else:
00104             raise NotFound( 'Cannot find default view for "%s"' %
00105                             '/'.join( self.getPhysicalPath() ) )
00106 
00107 InitializeClass(PortalContent)

Here is the call graph for this function:

Here is the caller graph for this function:

Check if isLocked via webDav.

Definition at line 72 of file PortalContent.py.

00072 
00073     def failIfLocked(self):
00074         """ Check if isLocked via webDav.
00075         """
00076         if self.wl_isLocked():
00077             raise ResourceLockedError(_(u'This resource is locked via '
00078                                         u'webDAV.'))
00079         return 0

Here is the caller graph for this function:

Returns a concatination of all searchable text.

Should be overriden by portal objects.

Definition at line 84 of file PortalContent.py.

00084 
00085     def SearchableText(self):
00086         """ Returns a concatination of all searchable text.
00087 
00088         Should be overriden by portal objects.
00089         """
00090         return "%s %s" % (self.Title(), self.Description())

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

tuple CMFCore.PortalContent.PortalContent.__implements__ = (z2IContentish, z2IWriteLock, DynamicType.__implements__) [static, private]

Definition at line 47 of file PortalContent.py.

Initial value:
( ( { 'label'  : 'Dublin Core'
                         , 'action' : 'manage_metadata'
                         }
                       , { 'label'  : 'Edit'
                         , 'action' : 'manage_edit'
                         }
                       , { 'label'  : 'View'
                         , 'action' : 'view'
                         }
                       )
                     + CMFCatalogAware.manage_options
                     + SimpleItem.manage_options
                     )

Definition at line 49 of file PortalContent.py.

tuple CMFCore.PortalContent.PortalContent.security = ClassSecurityInfo() [static]

Definition at line 63 of file PortalContent.py.


The documentation for this class was generated from the following file: