Changeset 52348

Show
Ignore:
Timestamp:
12/28/07 13:01:59 (2 years ago)
Author:
madarche
Message:

- #1874: "A CPS Proxy should have its effective_date set".

Files:

Legend:

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

    r52198 r52348  
    77Bug fixes 
    88~~~~~~~~~ 
     9- #1874: "A CPS Proxy should have its effective_date set". 
    910- Preparing the version number for the next release. 
    1011New internal features 
  • CPS3/products/CPSCore/trunk/ProxyBase.py

    r51960 r52348  
    1 # (C) Copyright 2002, 2003 Nuxeo SARL <http://nuxeo.com> 
     1# (C) Copyright 2002-2007 Nuxeo SAS <http://nuxeo.com> 
    22# Author: Florent Guillaume <fg@nuxeo.com> 
    33# 
     
    405405        logger.debug("reindex idxs=%s for %s", idxs, 
    406406                     '/'.join(self.getPhysicalPath())) 
     407        # Update the effective date 
     408        # Optim: we only modify the effective_date if this is a global 
     409        # reindexing, ie after the object has been modified, 
     410        # and not in case of a catalog reindexing. 
     411        if idxs == []: 
     412            content = self._getContent() 
     413            if content is not None: 
     414                effective_date = self._getContent().effective_date 
     415                self.effective_date = effective_date 
    407416        if 'allowedRolesAndUsers' in idxs: 
    408417            # Both must be updated