Back to index

plone3  3.1.7
Public Member Functions
CMFPlone.browser.portlets.news.NewsPortlet Class Reference
Inheritance diagram for CMFPlone.browser.portlets.news.NewsPortlet:
Inheritance graph
[legend]
Collaboration diagram for CMFPlone.browser.portlets.news.NewsPortlet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def published_news_items
def all_news_link

Detailed Description

Definition at line 10 of file news.py.


Member Function Documentation

Definition at line 22 of file news.py.

00022 
00023     def all_news_link(self):
00024         context = aq_inner(self.context)
00025         utool = getToolByName(context, 'portal_url')
00026         portal_url = utool()
00027         portal = utool.getPortalObject()
00028 
00029         if 'news' in portal.objectIds():
00030             return '%s/news' % portal_url
00031         else:
00032             return '%s/news_listing' % portal_url
00033 
zope.deprecation.deprecated(

Here is the call graph for this function:

Definition at line 13 of file news.py.

00013 
00014     def published_news_items(self):
00015         context = aq_inner(self.context)
00016         portal_catalog = getToolByName(context, 'portal_catalog')
00017 
00018         return self.request.get('news', 
00019                                 portal_catalog.searchResults(portal_type='News Item',
00020                                                              sort_on='Date',
00021                                                              sort_order='reverse',
                                                             review_state='published'))

Here is the call graph for this function:


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