Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
plone.app.layout.links.viewlets.RSSViewlet Class Reference
Inheritance diagram for plone.app.layout.links.viewlets.RSSViewlet:
Inheritance graph
[legend]
Collaboration diagram for plone.app.layout.links.viewlets.RSSViewlet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def update

Public Attributes

 allowed
 url

Static Public Attributes

tuple render = ViewPageTemplateFile('rsslink.pt')

Detailed Description

Definition at line 64 of file viewlets.py.


Member Function Documentation

Definition at line 65 of file viewlets.py.

00065 
00066     def update(self):
00067         super(RSSViewlet, self).update()
00068         syntool = getToolByName(self.context, 'portal_syndication')
00069         if syntool.isSyndicationAllowed(self.context):
00070             self.allowed = True
00071             context_state = getMultiAdapter((self.context, self.request),
00072                                             name=u'plone_context_state')
00073             self.url = '%s/RSS' % context_state.object_url()
00074         else:
00075             self.allowed = False

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 69 of file viewlets.py.

tuple plone.app.layout.links.viewlets.RSSViewlet.render = ViewPageTemplateFile('rsslink.pt') [static]

Definition at line 76 of file viewlets.py.

Definition at line 72 of file viewlets.py.


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