Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
plone.app.portlets.portlets.rss.Assignment Class Reference
Inheritance diagram for plone.app.portlets.portlets.rss.Assignment:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.portlets.rss.Assignment:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def title
def __init__
def id
def available
def data

Public Attributes

 count
 url
 timeout

Detailed Description

Definition at line 207 of file rss.py.


Constructor & Destructor Documentation

def plone.app.portlets.portlets.rss.Assignment.__init__ (   self,
  count = 5,
  url = u"",
  timeout = 100 
)

Definition at line 219 of file rss.py.

00219 
00220     def __init__(self, count=5, url=u"", timeout=100):
00221         self.count = count
00222         self.url = url
00223         self.timeout = timeout
        

Here is the caller graph for this function:


Member Function Documentation

def plone.app.portlets.portlets.base.Assignment.available (   self,
  context,
  request 
) [inherited]
By default, this portlet is always available

Definition at line 47 of file base.py.

00047 
00048     def available(self, context, request):
00049         """By default, this portlet is always available
00050         """
00051         return True

Make the assignment itself represent the data object that is being rendered.

Definition at line 53 of file base.py.

00053 
00054     def data(self):
00055         """Make the assignment itself represent the data object that is being rendered.
00056         """
00057         return self

Here is the caller graph for this function:

Definition at line 40 of file base.py.

00040 
00041     def id(self):
00042         return getattr(self, '__name__', '')
    

Here is the caller graph for this function:

return the title with RSS feed title or from URL

Reimplemented from plone.app.portlets.portlets.base.Assignment.

Definition at line 211 of file rss.py.

00211 
00212     def title(self):
00213         """return the title with RSS feed title or from URL"""
00214         feed = FEED_DATA.get(self.data.url,None)
00215         if feed is None:
00216             return u'RSS: '+self.url[:20]
00217         else:
00218             return u'RSS: '+feed.title[:20]

Here is the caller graph for this function:


Member Data Documentation

Definition at line 220 of file rss.py.

Definition at line 222 of file rss.py.

Definition at line 221 of file rss.py.


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