def combined_inbox_count(request):
    """
    A context processor that uses other context processors defined in
    setting.COMBINED_INBOX_COUNT_SOURCES to return the combined number from
    arbitrary counter sources.
    """
    count = 0
    for func in inbox_count_sources():
        counts = func(request)
        if counts:
            for value in counts.itervalues():
                try:
                    count = count + int(value)
                except (__HOLE__, ValueError):
                    pass
    return {
        "combined_inbox_count": count,
    }
dataset/ETHPy150Open amarandon/smeuhsocial/smeuhsocial/context_processors.py/combined_inbox_count