Changeset 49140

Show
Ignore:
Timestamp:
09/19/06 13:16:25 (3 years ago)
Author:
gracinet
Message:

getAdditionalContentInfo brought up to [32951]

Files:

Legend:

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

    r49002 r49140  
    1313  on request variable 'layout_id' and make it actually possible to use several 
    1414  flexible layouts on the same document type 
     15- #1747: Files get downloaded as 'file' from folder_contents 
    1516New internal features: 
    1617~~~~~~~~~~~~~~~~~~~~~~ 
  • CPS3/products/CPSDocument/trunk/CPSDocument.py

    r46767 r49140  
    4040from Products.CMFCore.interfaces.Dynamic import DynamicType as IDynamicType 
    4141 
     42from Products.CPSUtil.id import generateFileName 
     43 
    4244from zope.interface import implements 
    4345from Products.CPSDocument.interfaces import ICPSDocument 
     
    302304            if f._p_mtime: 
    303305                last_modified = str(f._p_mtime) 
    304             filename = f.getId(
     306            filename = generateFileName(f.title_or_id()
    305307            infos['download_url'] = "%s/downloadFile/file/%s?nocache=%s" % ( 
    306308                   utool.getRelativeUrl(proxy), filename, last_modified)