source: main/ngren.theme/trunk/ngren/theme/browser/news.py @ 12777

Last change on this file since 12777 was 10190, checked in by uli, 11 years ago

Add original theme as delivered by Fafalter.

File size: 353 bytes
Line 
1from plone.app.portlets.portlets.news import Renderer as NewsRenderer
2from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
3
4class Renderer(NewsRenderer):
5
6    _template = ViewPageTemplateFile('templates/news.pt')
7
8    def crop_text(self, text, num):
9        if len(text) > num:
10            return text[:num]+"..."
11        return text
Note: See TracBrowser for help on using the repository browser.