Changeset 52844

Show
Ignore:
Timestamp:
05/09/08 16:56:48 (4 months ago)
Author:
madarche
Message:

Fixed #1908: In section folders listing, documents should display their
effective date instead of their last modification date.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • CPS3/products/CPSDefault/trunk/CHANGES

    r52842 r52844  
    55~~~~~~~~~~~~ 
    66- #1907: Make it possible to publish recursively into different sections. 
     7Bug fixes 
     8~~~~~~~~~ 
     9- #1908: In section folders, document listings should display their effective 
     10  date instead of their last modification date. 
    711- #1890: Image without image breaks Image Gallery. 
    812  Part of the fix includes setting 'is_required' to True by default for 
     
    1014  Another part of fix is in CPSSchemas.BasicWidgets to correctly handle 
    1115  'is_required' field when no image was supplied to 'Image Widget'. 
    12 Bug fixes 
    13 ~~~~~~~~~ 
    1416- Better doc in the code. 
    1517New internal features 
  • CPS3/products/CPSDefault/trunk/skins/cps_default/content_lib_info_one_column.pt

    r32909 r52844  
    22<!-- $Id$ --> 
    33 
    4 <!-- One column doc information --> 
     4<!-- One column doc information 
     5 
     6Mandatory parameters to pass to this macro: 
     7 
     8- item : the proxy of the document 
     9--> 
    510 
    611<metal:block define-macro="info_one_column"> 
     
    1621                      status_time not:nothing; 
    1722                      description python:info['doc'].description"> 
    18     <span tal:content="python:here.getDateStr(info['time'],'short')" />. 
    19     <span tal:content="description" /> 
     23     <tal:span define="time_attribute python:test(here.isInSection(item), 
     24                                                  'effective', 'time')" 
     25               content="python:here.getDateStr(info[time_attribute],'short')" /> 
     26     <tal:span content="description" /> 
    2027   </tal:block> 
    2128</div> 
  • CPS3/products/CPSDefault/trunk/skins/cps_default/getContentInfo.py

    r50891 r52844  
    1  
    21##parameters=proxy=None, doc=None, level=0, cpsmcat=None 
    32# $Id$ 
     
    206205    info['lang'] = 'en' 
    207206info['time'] = proxy.modified() 
     207info['effective'] = proxy.effective() 
    208208 
    209209# level 1 
     
    301301else: 
    302302    info['time_str'] = '' 
     303if info['effective']: 
     304    info['effective_str'] = context.getDateStr(info['effective']) 
     305else: 
     306    info['effective_str'] = '' 
    303307 
    304308