Back to index

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

List of all members.

Public Member Functions

def getSyndicatableContent
def enableSyndication
def disableSyndication

Static Public Attributes

 meta_type = ToolNames.SyndicationTool
tuple security = ClassSecurityInfo()
string toolicon = 'skins/plone_images/rss.gif'

Static Private Attributes

tuple __implements__ = (PloneBaseTool.__implements__, BaseTool.__implements__, )

Detailed Description

Definition at line 10 of file SyndicationTool.py.


Member Function Documentation

Disable syndication for the obj; and remove it.

Definition at line 41 of file SyndicationTool.py.

00041 
00042     def disableSyndication(self, obj):
00043         """
00044         Disable syndication for the obj; and remove it.
00045         """
00046         mtool = getToolByName(self, 'portal_membership')
00047         if not mtool.checkPermission(ManageProperties, obj):
00048             raise Unauthorized
00049         BaseTool.disableSyndication(self, obj)
00050 
00051 SyndicationTool.__doc__ = BaseTool.__doc__
00052 
00053 InitializeClass(SyndicationTool)

Here is the call graph for this function:

Enable syndication for the obj

Definition at line 32 of file SyndicationTool.py.

00032 
00033     def enableSyndication(self, obj):
00034         """
00035         Enable syndication for the obj
00036         """
00037         mtool = getToolByName(self, 'portal_membership')
00038         if not mtool.checkPermission(ManageProperties, obj):
00039             raise Unauthorized
00040         BaseTool.enableSyndication(self, obj)

Here is the call graph for this function:

Use the getFolderContents script, unless
an object (like Topic) overrides it

Definition at line 19 of file SyndicationTool.py.

00019 
00020     def getSyndicatableContent(self, obj):
00021         """ Use the getFolderContents script, unless
00022         an object (like Topic) overrides it
00023         """
00024         # should we be doing aq_base here?
00025         if hasattr(obj, 'synContentValues'):
00026             values = obj.synContentValues()
00027         else:
00028             values = obj.getFolderContents()
00029         return values


Member Data Documentation

tuple CMFPlone.SyndicationTool.SyndicationTool.__implements__ = (PloneBaseTool.__implements__, BaseTool.__implements__, ) [static, private]

Definition at line 16 of file SyndicationTool.py.

Definition at line 12 of file SyndicationTool.py.

tuple CMFPlone.SyndicationTool.SyndicationTool.security = ClassSecurityInfo() [static]

Definition at line 13 of file SyndicationTool.py.

string CMFPlone.SyndicationTool.SyndicationTool.toolicon = 'skins/plone_images/rss.gif' [static]

Definition at line 14 of file SyndicationTool.py.


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