Back to index

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

List of all members.

Public Member Functions

def results

Detailed Description

Definition at line 10 of file recent.py.


Member Function Documentation

Definition at line 13 of file recent.py.

00013 
00014     def results(self):
00015         """ """
00016         context = aq_inner(self.context)
00017         putils = getToolByName(context, 'plone_utils')
00018         portal_catalog = getToolByName(context, 'portal_catalog')
00019         typesToShow = putils.getUserFriendlyTypes()
00020         return self.request.get(
00021             'items',
00022             portal_catalog.searchResults(sort_on='modified',
00023                                          portal_type=typesToShow,
00024                                          sort_order='reverse',
00025                                          sort_limit=5)[:5])
00026 
zope.deprecation.deprecated(

Here is the call graph for this function:


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