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)
def show_documentation(): """Redirect to online documentation.""" bottle.redirect('http://packages.python.org/Pympler')
def refresh(): """Clear all cached information.""" server.clear_cache() bottle.redirect('/')