예제 #1
0
def view_rss_index(request):
    """Index of available RSS feeds"""
    feeds = [(name, feed.description) for name, feed in get_feeds()]
    return direct_to_template(request, 'memebot/rss-index.html', {'feeds': feeds})
예제 #2
0
파일: bounce.py 프로젝트: seunboi4u/madcow
def get_max_links():
    from gruntle.memebot.feeds import get_feeds
    return max([getattr(f[1], 'max_links', 0)
                for f in get_feeds()] + [MIN_LINKS])
예제 #3
0
파일: bounce.py 프로젝트: Jzarecta/madcow
def get_max_links():
    from gruntle.memebot.feeds import get_feeds

    return max([getattr(f[1], "max_links", 0) for f in get_feeds()] + [MIN_LINKS])
예제 #4
0
파일: memebot.py 프로젝트: Jzarecta/madcow
def view_rss_index(request):
    """Index of available RSS feeds"""
    feeds = [(name, feed.description) for name, feed in get_feeds()]
    return direct_to_template(request, "memebot/rss-index.html", {"feeds": feeds})