コード例 #1
0
def tracker_class(clsname):
    """Get class instance details."""
    stats = server.stats
    if not stats:
        bottle.redirect('/tracker')
    stats.annotate()
    return dict(stats=stats, clsname=clsname)
コード例 #2
0
ファイル: web.py プロジェクト: ppizarror/Hero-of-Antair
def tracker_class(clsname):
    """Get class instance details."""
    stats = server.stats
    if not stats:
        bottle.redirect('/tracker')
    stats.annotate()
    return dict(stats=stats, clsname=clsname)
コード例 #3
0
def show_documentation():
    """Redirect to online documentation."""
    bottle.redirect('http://packages.python.org/Pympler')
コード例 #4
0
def refresh():
    """Clear all cached information."""
    server.clear_cache()
    bottle.redirect('/')
コード例 #5
0
ファイル: web.py プロジェクト: ppizarror/Hero-of-Antair
def show_documentation():
    """Redirect to online documentation."""
    bottle.redirect('http://packages.python.org/Pympler')
コード例 #6
0
ファイル: web.py プロジェクト: ppizarror/Hero-of-Antair
def refresh():
    """Clear all cached information."""
    server.clear_cache()
    bottle.redirect('/')