Exemplo n.º 1
0
def pages_for_user(user_name):
    """
    Shows the top 10 pages for a user
    """
    global args
    model = UserModel(user_name, args)
    return render_template(u'user_pages.html', user_name=user_name, pages=model.get_pages(limit=12))
Exemplo n.º 2
0
def wikis_for_user(user_name):
    """
    Shows the top 10 wikis for a user
    """
    global args
    data = UserModel(user_name, args).get_wikis(limit=12)
    return render_template(u"wikis_for_user.html", wikis=data, wiki_ids=data.keys(), user_name=user_name)