Changeset 1892


Ignore:
Timestamp:
07/12/07 15:16:59 (13 years ago)
Author:
gabor
Message:

fixed #1462 spent 12h

Location:
trunk/skins/lemill
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/skins/lemill/lemill_recent_view.pt

    r1885 r1892  
    2121 
    2222    <h1  i18n:translate="title_whats_going_on">What's going on?</h1> 
    23     <p tal:define="DateTime python:modules['DateTime'].DateTime;" tal:content="python:'%s, %s' % (DateTime().Day(), DateTime().Date())" /> 
    2423 
    2524    <!-- listing --> 
  • trunk/skins/lemill/queryCatalogForTopics.py

    r1872 r1892  
    7373    results=reslist         
    7474 
    75 results=ltool.prioritizeResults(results) 
     75if(context.id != 'recent'): 
     76    results=ltool.prioritizeResults(results) 
     77else: 
     78    results=list(results) 
     79    def compfunc(a,b): 
     80        a = a.getObject().getLatestEdit() 
     81        b = b.getObject().getLatestEdit() 
     82        if(a < b): 
     83            return 1 
     84        if(a > b): 
     85            return -1 
     86        if(a == b): 
     87            return 0 
     88    results.sort(compfunc) 
    7689 
    7790if full_objects and not limit: 
Note: See TracChangeset for help on using the changeset viewer.