From 5a0e2c0b9152ae1b9e70c37ff93cab4bc0e6b202 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sat, 4 Jun 2016 08:30:08 +0530 Subject: [PATCH] pagekite: Move app to system configuration This app rightfully belongs in system configuration section instead of the application section. It is setup once and not used regularly. It is not service but enabler for other services. --- plinth/modules/pagekite/__init__.py | 4 ++-- plinth/modules/pagekite/urls.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plinth/modules/pagekite/__init__.py b/plinth/modules/pagekite/__init__.py index 145a9da90..c4310e3fe 100644 --- a/plinth/modules/pagekite/__init__.py +++ b/plinth/modules/pagekite/__init__.py @@ -26,14 +26,14 @@ from . import utils version = 1 -depends = ['apps', 'names'] +depends = ['system', 'names'] title = _('Public Visibility (PageKite)') def init(): """Intialize the PageKite module""" - menu = cfg.main_menu.get('apps:index') + menu = cfg.main_menu.get('system:index') menu.add_urlname(title, 'glyphicon-flag', 'pagekite:index') # Register kite name with Name Services module. diff --git a/plinth/modules/pagekite/urls.py b/plinth/modules/pagekite/urls.py index e8722df05..4d23a5e20 100644 --- a/plinth/modules/pagekite/urls.py +++ b/plinth/modules/pagekite/urls.py @@ -26,13 +26,13 @@ from .views import StandardServiceView, CustomServiceView, ConfigurationView, \ urlpatterns = [ - url(r'^apps/pagekite/$', index, name='index'), - url(r'^apps/pagekite/configure/$', ConfigurationView.as_view(), + url(r'^sys/pagekite/$', index, name='index'), + url(r'^sys/pagekite/configure/$', ConfigurationView.as_view(), name='configure'), - url(r'^apps/pagekite/services/standard$', StandardServiceView.as_view(), + url(r'^sys/pagekite/services/standard$', StandardServiceView.as_view(), name='standard-services'), - url(r'^apps/pagekite/services/custom$', CustomServiceView.as_view(), + url(r'^sys/pagekite/services/custom$', CustomServiceView.as_view(), name='custom-services'), - url(r'^apps/pagekite/services/custom/delete$', DeleteServiceView.as_view(), + url(r'^sys/pagekite/services/custom/delete$', DeleteServiceView.as_view(), name='delete-custom-service'), ]