selectors.py
changeset 3674 387d51af966d
parent 3524 a3431f4e2f40
parent 3650 012da21e43fe
child 3720 5376aaadd16b
--- a/selectors.py	Tue Oct 13 18:21:24 2009 +0200
+++ b/selectors.py	Thu Oct 15 10:31:54 2009 +0200
@@ -43,7 +43,7 @@
 __docformat__ = "restructuredtext en"
 
 import logging
-from warnings import warn
+from warnings import warn, filterwarnings
 
 from logilab.common.compat import all
 from logilab.common.interface import implements as implements_iface
@@ -64,7 +64,7 @@
 
 def lltrace(selector):
     # don't wrap selectors if not in development mode
-    if CubicWebConfiguration.mode == 'installed':
+    if CubicWebConfiguration.mode == 'system': # XXX config.debug
         return selector
     def traced(cls, *args, **kwargs):
         # /!\ lltrace decorates pure function or __call__ method, this