Changeset 1356


Ignore:
Timestamp:
02/09/07 15:54:11 (13 years ago)
Author:
jukka
Message:

NiceNames? for members are displayed, but seems that sortable_nicename calculates itself wrong: If member has firstname and lastname, it should be sorted by lastname. Also fixed tagclouds to link correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LargeSectionFolder.py

    r1355 r1356  
    604604        popularity.sort(cmp=lambda t2,t1: cmp(t1[0],t2[0])) 
    605605        popularity=popularity[:100] 
    606         titlecloud=[(s_title,pop,x.getURL(),s_title, x.Title) for (pop, s_title, x) in popularity if x.Title!=''] 
     606        if browse_type=='member_titles': 
     607            titlecloud=[(x.getSortable_nicename,pop,x.getURL(),s_title, x.getNicename) for (pop, s_title, x) in popularity]         
     608        else: 
     609            titlecloud=[(s_title,pop,x.getURL(),s_title, x.Title) for (pop, s_title, x) in popularity if x.Title!=''] 
    607610        titlecloud.sort() 
    608611        maxscore=max([x[1] for x in titlecloud]) 
     
    676679                small_value=resultlist[cutpoint][0] 
    677680            resultlist=resultlist[:cutpoint+1] 
    678         resultlist=[(x[1], x[0], '','',x[1]) for x in resultlist] 
     681        resultlist=[(x[1], x[0], '',x[1],x[1]) for x in resultlist] 
    679682 
    680683        # adjust to 1-8. We don't have to worry about score 0, they're already removed. 
Note: See TracChangeset for help on using the changeset viewer.