def register_checker(lang=u'python', checker=None, color=None, priority=1):
 global NOTIFICATIONS_CHECKERS
 checkers = NOTIFICATIONS_CHECKERS.get(lang, [])
 checkers.append((checker, color, priority))
 NOTIFICATIONS_CHECKERS[lang] = checkers

def register_checker ( lang = u'python' , checker = None , color = None , priority = 1 ) : global NOTIFICATIONS_CHECKERS checkers = NOTIFICATIONS_CHECKERS . get ( lang , [ ] ) checkers . append ( ( checker , color , priority ) ) NOTIFICATIONS_CHECKERS [ lang ] = checkers
register a checker for some language .