equal
deleted
inserted
replaced
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 |