Changeset 50208

Show
Ignore:
Timestamp:
11/22/06 12:29:25 (3 years ago)
Author:
gracinet
Message:

For #1788: if timeout is not specify in the tool's cache parameters,
it'll be read from the portlet 'cache_timeout' field.

Files:

Legend:

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

    r50190 r50208  
    44New features 
    55~~~~~~~~~~~~ 
    6 
     6- For #1788: if timeout is not specify in the tool's cache parameters, 
     7  it'll be read from the portlet 'cache_timeout' field. 
    78Bug fixes 
    89~~~~~~~~~ 
  • CPS3/products/CPSPortlets/trunk/CPSPortlet.py

    r49799 r50208  
    241241        # set the cache timeout value based on cache paramaters 
    242242 
    243         timeout = 0 
     243        timeout = None 
    244244        for param in cache_params: 
    245245            if not param.startswith('timeout:'): 
     
    251251                pass 
    252252 
     253        if timeout is None: 
     254            return 
    253255        if timeout >= 0 and self.cache_timeout != timeout: 
    254256            self.cache_timeout = timeout 
  • CPS3/products/CPSPortlets/trunk/doc/cpsportlets-cache.txt

    r49961 r50208  
    296296    the content portlet 
    297297 
     298- cache_timeout 
     299 
     300  The timeout of the cache, expressed in seconds. 
     301 
     302  If this parameter is not specified, the value of the cache timeout 
     303  will be read from the corresponding portlet's field (defined in 
     304  schema portlet_common). 
     305 
     306  Otherwise, the specified value will supersede the value in the field for all 
     307  portlets of given type. 
     308 
    298309 
    299310- no-cache: