diff -r 13a5d3a7410e -r a2c73b272c9b server/repository.py --- a/server/repository.py Tue Mar 02 15:44:26 2010 +0100 +++ b/server/repository.py Tue Mar 02 15:57:32 2010 +0100 @@ -105,7 +105,8 @@ # skip that for super session (though we can still skip it for internal # sessions). Also we should imo rely on the orm to first fetch existing # entity if any then delete it. - if session.is_internal_session: + if session.is_internal_session \ + or not session.vreg.config.is_hook_category_activated('integrity'): return card = session.schema_rproperty(rtype, eidfrom, eidto, 'cardinality') # one may be tented to check for neweids but this may cause more than one