common/selectors.py
changeset 215 dfb4ca3ffe78
parent 213 6842c3dee34b
child 230 6e71adc5ccdd
equal deleted inserted replaced
214:aaf2957bf69e 215:dfb4ca3ffe78
    23     # don't wrap selectors if not in development mode
    23     # don't wrap selectors if not in development mode
    24     if CubicWebConfiguration.mode == 'installed':
    24     if CubicWebConfiguration.mode == 'installed':
    25         return selector
    25         return selector
    26     def traced(cls, *args, **kwargs):
    26     def traced(cls, *args, **kwargs):
    27         ret = selector(cls, *args, **kwargs)
    27         ret = selector(cls, *args, **kwargs)
    28         if cls.id == 'seealso':
    28         cls.lldebug('selector %s returned %s for %s', selector.__name__, ret, cls)
    29             cls.warning('selector %s returned %s for %s', selector.__name__, ret, cls)
       
    30         return ret
    29         return ret
    31     return traced
    30     return traced
    32     
    31     
    33 # very basic selectors ########################################################
    32 # very basic selectors ########################################################
    34 
    33