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:
Sunil Mohan Adapa 2020-02-29 19:51:18 -05:00 committed by Veiko Aasa
parent 1dd75990b1
commit fe5bdf290b
No known key found for this signature in database
GPG Key ID: 478539CAE680674E
2 changed files with 2 additions and 7 deletions

View File

@ -13,7 +13,6 @@ from plinth.daemon import Daemon
from plinth.modules.apache.components import diagnose_url
from plinth.modules.firewall.components import Firewall
from plinth.utils import format_lazy
from plinth.views import AppView
from .manifest import backup # noqa, pylint: disable=unused-import
@ -104,10 +103,6 @@ def setup(helper, old_version=None):
helper.call('post', app.enable)
class PrivoxyAppView(AppView):
app_id = 'privoxy'
def diagnose_url_with_proxy():
"""Run a diagnostic on a URL with a proxy."""
url = 'https://debian.org/' # Gives a simple redirect to www.

View File

@ -5,8 +5,8 @@ URLs for the Privoxy module.
from django.conf.urls import url
from plinth.modules.privoxy import PrivoxyAppView
from plinth.views import AppView
urlpatterns = [
url(r'^apps/privoxy/$', PrivoxyAppView.as_view(), name='index'),
url(r'^apps/privoxy/$', AppView.as_view(app_id='privoxy'), name='index'),
]