Пример #1
0
def _categorycounts():
    """Context processor to provide a category counts to a template"""
    return SummaryProcessor.context_processor('YAWT_CATEGORY_COUNT_FILE',
                                              'YAWT_CATEGORY_BASE',
                                              'categorycounts')
Пример #2
0
def _tagcounts_cp():
    return SummaryProcessor.context_processor("YAWT_TAGGING_COUNT_FILE", "YAWT_TAGGING_BASE", "tagcounts")
Пример #3
0
def _archive_counts_cp():
    return SummaryProcessor.context_processor('YAWT_ARCHIVE_COUNT_FILE',
                                              'YAWT_ARCHIVE_BASE',
                                              'archivecounts')