Last change
on this file since 10190 was
10190,
checked in by uli, 12 years ago
|
Add original theme as delivered by Fafalter.
|
File size:
353 bytes
|
Line | |
---|
1 | from plone.app.portlets.portlets.news import Renderer as NewsRenderer |
---|
2 | from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile |
---|
3 | |
---|
4 | class 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.