we should use unsafe_execute here stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 17 Aug 2009 13:18:45 +0200
branchstable
changeset 2878 03244a6d0283
parent 2877 e469f3602858
child 2879 ae26a80c0635
we should use unsafe_execute here
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)