selectors.py
changeset 2381 caad2367d940
parent 2293 7ded2a1416e4
parent 2308 b478c3a8ad2a
child 2514 c745dfb2734e
equal deleted inserted replaced
2374:ea1a44e4ad62 2381:caad2367d940
    77             vobj = cls
    77             vobj = cls
    78         oid = vobj.id
    78         oid = vobj.id
    79         ret = selector(cls, *args, **kwargs)
    79         ret = selector(cls, *args, **kwargs)
    80         if TRACED_OIDS == 'all' or oid in TRACED_OIDS:
    80         if TRACED_OIDS == 'all' or oid in TRACED_OIDS:
    81             #SELECTOR_LOGGER.warning('selector %s returned %s for %s', selname, ret, cls)
    81             #SELECTOR_LOGGER.warning('selector %s returned %s for %s', selname, ret, cls)
    82             print 'selector %s returned %s for %s' % (selname, ret, vobj)
    82             print '%s -> %s for %s' % (selname, ret, vobj)
    83         return ret
    83         return ret
    84     traced.__name__ = selector.__name__
    84     traced.__name__ = selector.__name__
    85     return traced
    85     return traced
    86 
    86 
    87 class traced_selection(object):
    87 class traced_selection(object):