skip tidy hook for super session stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 15 Oct 2009 20:29:51 +0200
branchstable
changeset 3690 a5ef45850d23
parent 3689 deb13e88e037
child 3691 ccd72f500daa
skip tidy hook for super session
sobjects/hooks.py
--- a/sobjects/hooks.py	Thu Oct 15 20:29:21 2009 +0200
+++ b/sobjects/hooks.py	Thu Oct 15 20:29:51 2009 +0200
@@ -69,6 +69,8 @@
     accepts = ('Any',)
 
     def call(self, session, entity):
+        if session.is_super_session:
+            return
         metaattrs = entity.e_schema.meta_attributes()
         for metaattr, (metadata, attr) in metaattrs.iteritems():
             if metadata == 'format':