mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
privoxy: Use generic app view
Tests performed: - Visit privoxy app view. - Enable/disable privoxy app. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
1dd75990b1
commit
fe5bdf290b
@ -13,7 +13,6 @@ from plinth.daemon import Daemon
|
|||||||
from plinth.modules.apache.components import diagnose_url
|
from plinth.modules.apache.components import diagnose_url
|
||||||
from plinth.modules.firewall.components import Firewall
|
from plinth.modules.firewall.components import Firewall
|
||||||
from plinth.utils import format_lazy
|
from plinth.utils import format_lazy
|
||||||
from plinth.views import AppView
|
|
||||||
|
|
||||||
from .manifest import backup # noqa, pylint: disable=unused-import
|
from .manifest import backup # noqa, pylint: disable=unused-import
|
||||||
|
|
||||||
@ -104,10 +103,6 @@ def setup(helper, old_version=None):
|
|||||||
helper.call('post', app.enable)
|
helper.call('post', app.enable)
|
||||||
|
|
||||||
|
|
||||||
class PrivoxyAppView(AppView):
|
|
||||||
app_id = 'privoxy'
|
|
||||||
|
|
||||||
|
|
||||||
def diagnose_url_with_proxy():
|
def diagnose_url_with_proxy():
|
||||||
"""Run a diagnostic on a URL with a proxy."""
|
"""Run a diagnostic on a URL with a proxy."""
|
||||||
url = 'https://debian.org/' # Gives a simple redirect to www.
|
url = 'https://debian.org/' # Gives a simple redirect to www.
|
||||||
|
|||||||
@ -5,8 +5,8 @@ URLs for the Privoxy module.
|
|||||||
|
|
||||||
from django.conf.urls import url
|
from django.conf.urls import url
|
||||||
|
|
||||||
from plinth.modules.privoxy import PrivoxyAppView
|
from plinth.views import AppView
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^apps/privoxy/$', PrivoxyAppView.as_view(), name='index'),
|
url(r'^apps/privoxy/$', AppView.as_view(app_id='privoxy'), name='index'),
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user