Changeset 3361 in products for quintagroup.portlet.cumulus/trunk/quintagroup
- Timestamp:
- Feb 24, 2012 10:15:53 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.portlet.cumulus/trunk/quintagroup/portlet/cumulus/cumulusportlet.py
r1041 r3361 98 98 required=True, 99 99 default=u'pt') 100 101 max_tags = schema.Int( 102 title=_(u'Maximum number of tags to display'), 103 description=_(u'Used when too many tags make the display ugly.'), 104 required=True, 105 default=50) 100 106 101 107 class Assignment(base.Assignment): … … 122 128 largest = 22 123 129 unit = u'pt' 130 max_tags = 50 124 131 125 132 def __init__(self, **kw): … … 209 216 return [] 210 217 218 tags.sort(lambda x,y: (x[1]<y[1] and 1) or (x[1]>y[1] and -1) or 0) 219 tags = tags[:self.data.max_tags] 220 211 221 number_of_entries = [i[1] for i in tags] 212 222
Note: See TracChangeset
for help on using the changeset viewer.