hooks/workflow.py
changeset 8695 358d8bed9626
parent 8556 bbe0d6985e59
child 9469 032825bbacab
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
   323             # new entity, not needed
   323             # new entity, not needed
   324             return
   324             return
   325         entity = self._cw.entity_from_eid(self.eidfrom)
   325         entity = self._cw.entity_from_eid(self.eidfrom)
   326         try:
   326         try:
   327             entity.cw_set(modification_date=datetime.now())
   327             entity.cw_set(modification_date=datetime.now())
   328         except RepositoryError, ex:
   328         except RepositoryError as ex:
   329             # usually occurs if entity is coming from a read-only source
   329             # usually occurs if entity is coming from a read-only source
   330             # (eg ldap user)
   330             # (eg ldap user)
   331             self.warning('cant change modification date for %s: %s', entity, ex)
   331             self.warning('cant change modification date for %s: %s', entity, ex)
   332 
   332 
   333 
   333