Changeset 609

Show
Ignore:
Timestamp:
10/26/06 04:00:32
Author:
mylan
Message:

Limit number displayed items in feed for Topic. Restore from 0.4.5 version.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qRSS2Syndication/trunk/skins/qrss2syndication/getSyndicatableContent.py

    r608 r609  
    1111if not obj: 
    1212   obj = context 
    13 if hasattr(context,'synContentValues')
     13if hasattr(context,'synContentValues') or context.portal_type=='Topic'
    1414   count = context.portal_syndication.getMaxItems(obj)  
    1515   res = context.portal_syndication.getSyndicatableContent(obj) 
     16   # has to check and cut number of items to be displayed  
     17   # to prevent feed bloat  
    1618   count = count<len(res) and count or len(res) 
    1719   res = res[:count]