# HG changeset patch # User Sylvain Thénault # Date 1250507925 -7200 # Node ID 03244a6d0283cd6c97284d8dc7c845b62462c2dc # Parent e469f36028586551ba59d3de28ef4d7c5864a669 we should use unsafe_execute here diff -r e469f3602858 -r 03244a6d0283 sobjects/hooks.py --- a/sobjects/hooks.py Mon Aug 17 13:18:35 2009 +0200 +++ b/sobjects/hooks.py Mon Aug 17 13:18:45 2009 +0200 @@ -26,7 +26,8 @@ return entity = session.entity_from_eid(fromeid) try: - entity.set_attributes(modification_date=datetime.now()) + entity.set_attributes(modification_date=datetime.now(), + _cw_unsafe=True) except RepositoryError, ex: # usually occurs if entity is coming from a read-only source # (eg ldap user)