示例#1
0
文件: categories.py 项目: drivet/yawt
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
文件: tagging.py 项目: drivet/yawt
def _tagcounts_cp():
    return SummaryProcessor.context_processor("YAWT_TAGGING_COUNT_FILE", "YAWT_TAGGING_BASE", "tagcounts")
示例#3
0
文件: archives.py 项目: drivet/yawt
def _archive_counts_cp():
    return SummaryProcessor.context_processor('YAWT_ARCHIVE_COUNT_FILE',
                                              'YAWT_ARCHIVE_BASE',
                                              'archivecounts')