Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/v/n/vnccollab.theme-1.7.11-/vnccollab/theme/browser/homepage.py   vnccollab.theme(Download)
from Products.CMFCore.utils import getToolByName
 
from ..config import HP_NEWS_LIMIT
from .dashboard import DashboardView
 
    def getNews(self):
        catalog = getToolByName(self.context, 'portal_catalog')
        return catalog(portal_type="News Item", sort_on='created',
            sort_order='reverse',
            sort_limit=HP_NEWS_LIMIT)[:HP_NEWS_LIMIT]