def setup(): register_admin_page('/admin/git-pull', gitpull, label='git-pull') register_admin_page('/admin/reload', reload, label='Reload Templates') register_admin_page('/admin/people', people, label='People') register_admin_page('/admin/people/([^/]*)', people_view, label='View People') register_admin_page('/admin/people/([^/]*)/edits', people_edits, label='Edits') register_admin_page('/admin/ip', ipaddress, label='IP') register_admin_page('/admin/ip/(.*)', ipaddress_view, label='View IP') register_admin_page('/admin/stats/(\d\d\d\d-\d\d-\d\d)', stats, label='Stats JSON') register_admin_page('/admin/ipstats', ipstats, label='IP Stats JSON') register_admin_page('/admin/block', block, label='') register_admin_page('/admin/loans', loans_admin, label='') register_admin_page('/admin/waitinglists', waitinglists_admin, label='') register_admin_page('/admin/status', service_status, label = "Open Library services") register_admin_page('/admin/inspect(?:(/.+))?', inspect, label="") register_admin_page('/admin/graphs', _graphs, label="") register_admin_page('/admin/permissions', permissions, label="") register_admin_page('/admin/solr', solr, label="") register_admin_page('/admin/imports', imports_home, label="") register_admin_page('/admin/imports/add', imports_add, label="") register_admin_page('/admin/imports/(\d\d\d\d-\d\d-\d\d)', imports_by_date, label="") register_admin_page('/admin/spamwords', spamwords, label="") import mem for p in [mem._memory, mem._memory_type, mem._memory_id]: register_admin_page('/admin' + p.path, p) public(get_admin_stats) public(get_blocked_ips) delegate.app.add_processor(block_ip_processor) import graphs graphs.setup()
def setup(): register_admin_page('/admin/git-pull', gitpull, label='git-pull') register_admin_page('/admin/reload', reload, label='Reload Templates') register_admin_page('/admin/people', people, label='People') register_admin_page('/admin/people/(.*)', people_view, label='View People') register_admin_page('/admin/ip', ipaddress, label='IP') register_admin_page('/admin/ip/(.*)', ipaddress_view, label='View IP') register_admin_page('/admin/stats/(\d\d\d\d-\d\d-\d\d)', stats, label='Stats JSON') register_admin_page('/admin/ipstats', ipstats, label='IP Stats JSON') register_admin_page('/admin/block', block, label='') register_admin_page('/admin/loans', loans_admin, label='') register_admin_page('/admin/status', service_status, label = "Open Library services") register_admin_page('/admin/support', support.cases, label = "All Support cases") register_admin_page('/admin/support/(all|new|replied|closed)?', support.cases, label = "Filtered Support cases") register_admin_page('/admin/support/(\d+)', support.case, label = "Support cases") register_admin_page('/admin/inspect(?:(/.+))?', inspect, label="") register_admin_page('/admin/tasks', tasks.tasklist, label = "Task queue") register_admin_page('/admin/tasks/(.*)', tasks.tasks, label = "Task details") register_admin_page('/admin/deploy', deploy, label="") register_admin_page('/admin/graphs', _graphs, label="") inspect_thing.setup() support.setup() import mem for p in [mem._memory, mem._memory_type, mem._memory_id]: register_admin_page('/admin' + p.path, p) public(get_admin_stats) public(get_blocked_ips) delegate.app.add_processor(block_ip_processor) import graphs graphs.setup()
def setup(): register_admin_page('/admin/git-pull', gitpull, label='git-pull') register_admin_page('/admin/reload', reload, label='Reload Templates') register_admin_page('/admin/people', people, label='People') register_admin_page('/admin/people/([^/]*)', people_view, label='View People') register_admin_page('/admin/people/([^/]*)/edits', people_edits, label='Edits') register_admin_page('/admin/ip', ipaddress, label='IP') register_admin_page('/admin/ip/(.*)', ipaddress_view, label='View IP') register_admin_page('/admin/stats/(\d\d\d\d-\d\d-\d\d)', stats, label='Stats JSON') register_admin_page('/admin/ipstats', ipstats, label='IP Stats JSON') register_admin_page('/admin/block', block, label='') register_admin_page('/admin/attach_debugger', attach_debugger, label='Attach Debugger') register_admin_page('/admin/loans', loans_admin, label='') register_admin_page('/admin/waitinglists', waitinglists_admin, label='') register_admin_page('/admin/inspect(?:(/.+))?', inspect, label="") register_admin_page('/admin/graphs', _graphs, label="") register_admin_page('/admin/logs', show_log, label="") register_admin_page('/admin/permissions', permissions, label="") register_admin_page('/admin/solr', solr, label="", librarians=True) register_admin_page('/admin/sync', sync_ol_ia, label="", librarians=True) register_admin_page('/admin/staffpicks', add_work_to_staff_picks, label="", librarians=True) register_admin_page('/admin/imports', imports_home, label="") register_admin_page('/admin/imports/add', imports_add, label="") register_admin_page('/admin/imports/(\d\d\d\d-\d\d-\d\d)', imports_by_date, label="") register_admin_page('/admin/spamwords', spamwords, label="") register_admin_page('/admin/sponsorship', sponsorship_stats, label="Sponsorship") import mem for p in [mem._memory, mem._memory_type, mem._memory_id]: register_admin_page('/admin' + p.path, p) public(get_admin_stats) public(get_blocked_ips) delegate.app.add_processor(block_ip_processor) import graphs graphs.setup()
def setup(): register_admin_page('/admin/git-pull', gitpull, label='git-pull') register_admin_page('/admin/reload', reload, label='Reload Templates') register_admin_page('/admin/people', people, label='People') register_admin_page('/admin/people/([^/]*)', people_view, label='View People') register_admin_page('/admin/people/([^/]*)/edits', people_edits, label='Edits') register_admin_page('/admin/ip', ipaddress, label='IP') register_admin_page('/admin/ip/(.*)', ipaddress_view, label='View IP') register_admin_page('/admin/stats/(\d\d\d\d-\d\d-\d\d)', stats, label='Stats JSON') register_admin_page('/admin/ipstats', ipstats, label='IP Stats JSON') register_admin_page('/admin/block', block, label='') register_admin_page('/admin/loans', loans_admin, label='') register_admin_page('/admin/status', service_status, label="Open Library services") # register_admin_page('/admin/support', support.cases, label = "All Support cases") # register_admin_page('/admin/support/(all|new|replied|closed)?', support.cases, label = "Filtered Support cases") # register_admin_page('/admin/support/(\d+)', support.case, label = "Support cases") register_admin_page('/admin/inspect(?:(/.+))?', inspect, label="") register_admin_page('/admin/tasks', tasks.tasklist, label="Task queue") register_admin_page('/admin/tasks/(.*)', tasks.tasks, label="Task details") register_admin_page('/admin/deploy', deploy, label="") register_admin_page('/admin/graphs', _graphs, label="") register_admin_page('/admin/permissions', permissions, label="") register_admin_page('/admin/solr', solr, label="") register_admin_page('/admin/imports', imports, label="") register_admin_page('/admin/imports/(\d\d\d\d-\d\d-\d\d)', imports_by_date, label="") inspect_thing.setup() support.setup() import mem for p in [mem._memory, mem._memory_type, mem._memory_id]: register_admin_page('/admin' + p.path, p) public(get_admin_stats) public(get_blocked_ips) delegate.app.add_processor(block_ip_processor) import graphs graphs.setup()
def setup(): register_admin_page("/admin/git-pull", gitpull, label="git-pull") register_admin_page("/admin/reload", reload, label="Reload Templates") register_admin_page("/admin/people", people, label="People") register_admin_page("/admin/people/([^/]*)", people_view, label="View People") register_admin_page("/admin/people/([^/]*)/edits", people_edits, label="Edits") register_admin_page("/admin/ip", ipaddress, label="IP") register_admin_page("/admin/ip/(.*)", ipaddress_view, label="View IP") register_admin_page("/admin/stats/(\d\d\d\d-\d\d-\d\d)", stats, label="Stats JSON") register_admin_page("/admin/ipstats", ipstats, label="IP Stats JSON") register_admin_page("/admin/block", block, label="") register_admin_page("/admin/loans", loans_admin, label="") register_admin_page("/admin/status", service_status, label="Open Library services") register_admin_page("/admin/support", support.cases, label="All Support cases") register_admin_page("/admin/support/(all|new|replied|closed)?", support.cases, label="Filtered Support cases") register_admin_page("/admin/support/(\d+)", support.case, label="Support cases") register_admin_page("/admin/inspect(?:(/.+))?", inspect, label="") register_admin_page("/admin/tasks", tasks.tasklist, label="Task queue") register_admin_page("/admin/tasks/(.*)", tasks.tasks, label="Task details") register_admin_page("/admin/deploy", deploy, label="") register_admin_page("/admin/graphs", _graphs, label="") register_admin_page("/admin/permissions", permissions, label="") inspect_thing.setup() support.setup() import mem for p in [mem._memory, mem._memory_type, mem._memory_id]: register_admin_page("/admin" + p.path, p) public(get_admin_stats) public(get_blocked_ips) delegate.app.add_processor(block_ip_processor) import graphs graphs.setup()
def __generate_charts(self): graphs.setup() self.__generate_bod_1801_components_bar_chart() self.__generate_donut_charts()
def __generate_charts(self): graphs.setup() self.__figure_overview() self.__donut_figure()