def delete(request, name): """Handle deleting wikis/blogs, showing a confirmation dialog first. On GET, display a confirmation page. On POST, delete the wiki/blog. """ if request.method == 'POST': try: actions.superuser_run('ikiwiki', ['delete', '--name', name]) messages.success(request, _('{name} deleted.').format(name=name)) frontpage.remove_shortcut('ikiwiki_' + name) except actions.ActionError as error: messages.error(request, _('Could not delete {name}: {error}') .format(name=name, error=error)) return redirect(reverse_lazy('ikiwiki:manage')) return TemplateResponse(request, 'ikiwiki_delete.html', {'title': _('Delete Wiki or Blog'), 'subsubmenu': subsubmenu, 'name': name})
def delete(request, name): """Handle deleting wikis/blogs, showing a confirmation dialog first. On GET, display a confirmation page. On POST, delete the wiki/blog. """ if request.method == 'POST': try: actions.superuser_run('ikiwiki', ['delete', '--name', name]) messages.success(request, _('{name} deleted.').format(name=name)) frontpage.remove_shortcut('ikiwiki_' + name) except actions.ActionError as error: messages.error( request, _('Could not delete {name}: {error}').format(name=name, error=error)) return redirect(reverse_lazy('ikiwiki:manage')) return TemplateResponse(request, 'ikiwiki_delete.html', { 'title': _('Delete Wiki or Blog'), 'subsubmenu': subsubmenu, 'name': name })
def disable(): """Enable the module.""" actions.superuser_run('tahoe-lafs', ['disable']) frontpage.remove_shortcut('tahoe-lafs')
def disable(): """Enable the module.""" actions.superuser_run('matrixsynapse', ['disable']) frontpage.remove_shortcut('matrixsynapse')
def disable(): """Disable the module.""" actions.superuser_run('service', ['disable', managed_services[0]]) frontpage.remove_shortcut('minetest')
def disable(): """Enable the module.""" actions.superuser_run('syncthing', ['disable']) frontpage.remove_shortcut('syncthing')
def disable(): """Enable the module.""" actions.superuser_run('ejabberd', ['disable']) frontpage.remove_shortcut('ejabberd')
def disable(): """Disable the module.""" actions.superuser_run('radicale', ['disable']) frontpage.remove_shortcut('radicale')
def disable(): """Disable service.""" actions.superuser_run('service', ['disable', managed_services[0]]) frontpage.remove_shortcut('shadowsocks')
def disable(): frontpage.remove_shortcut('jsxc')
def disable(): """Disable the module.""" actions.superuser_run('gnu-social', ['disable']) frontpage.remove_shortcut('gnusocial*')
def disable(): """Enable the module.""" actions.superuser_run("transmission", ["disable"]) frontpage.remove_shortcut("transmission")
def disable(): """Enable the module.""" actions.superuser_run('roundcube', ['disable']) frontpage.remove_shortcut('roundcube')
def disable(): """Enable the module.""" actions.superuser_run('ikiwiki', ['disable']) frontpage.remove_shortcut('ikiwiki*')
def disable(): """Enable the module.""" actions.superuser_run('transmission', ['disable']) frontpage.remove_shortcut('transmission')
def disable(): """Enable the module.""" actions.superuser_run('service', ['disable', managed_services[0]]) frontpage.remove_shortcut('openvpn')
def disable(): """Disable the module.""" actions.superuser_run('diaspora', ['disable']) frontpage.remove_shortcut('diaspora')
def disable(): """Enable the module.""" actions.superuser_run('xmpp', ['disable']) frontpage.remove_shortcut('jsxc') frontpage.remove_shortcut('xmpp')
def disable(): """Disable the module.""" actions.superuser_run('service', ['disable', managed_services[0]]) frontpage.remove_shortcut('repro')
def disable(): """Enable the module.""" actions.superuser_run("shaarli", ["disable"]) frontpage.remove_shortcut("shaarli")