예제 #1
0
def maintainer_repo_feed(maintainer, repo):
    return flask.render_template('maintainer-repo-feed.html',
                                 maintainer=maintainer,
                                 repo=repo,
                                 history=smear_timestamps(
                                     get_db().get_maintainer_feed(
                                         maintainer=maintainer,
                                         repo=repo,
                                         limit=config['HISTORY_PER_PAGE'])))
예제 #2
0
def maintainer_repo_feed_atom(maintainer, repo):
    return (flask.render_template(
        'maintainer-repo-feed-atom.xml',
        maintainer=maintainer,
        repo=repo,
        history=smear_timestamps(get_db().get_maintainer_feed(
            maintainer=maintainer,
            repo=repo,
            timespan=datetime.timedelta(weeks=4),
            limit=config['HISTORY_PER_PAGE']))), {
                'Content-type': 'application/atom+xml'
            })
예제 #3
0
def maintainer_repo_feed(maintainer, repo):
    autorefresh = flask.request.args.to_dict().get('autorefresh')

    return flask.render_template('maintainer-repo-feed.html',
                                 maintainer=maintainer,
                                 repo=repo,
                                 history=smear_timestamps(
                                     get_db().get_maintainer_feed(
                                         maintainer=maintainer,
                                         repo=repo,
                                         limit=config['HISTORY_PER_PAGE'])),
                                 autorefresh=autorefresh)