Remove duplicate client information from __init__.py of modules

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati 2017-10-27 15:00:20 +05:30 committed by James Valleroy
parent 64b4d1ffc1
commit defcb37472
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
17 changed files with 1 additions and 143 deletions

View File

@ -1,30 +0,0 @@
#
# This file is part of Plinth.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
"""
Django models for the main application
"""
from collections import namedtuple
web_client = namedtuple('Web_Client', ['name', 'url'])
desktop_client = namedtuple('Desktop_clients', ['name', 'url'])
mobile_client = namedtuple('Mobile_clients', ['name',
'fully_qualified_name',
'fdroid_url', 'play_store_url'])

View File

@ -25,7 +25,6 @@ from plinth import actions
from plinth import action_utils
from plinth import frontpage
from plinth import service as service_module
from plinth.client import web_client
from plinth.menu import main_menu
from plinth.modules.users import add_group
from .manifest import clients
@ -55,7 +54,6 @@ description = [
reserved_usernames = ['debian-deluged']
clients = clients
web_clients = [web_client(name='Deluge', url='/deluge')]
def init():

View File

@ -35,7 +35,6 @@ from plinth.menu import main_menu
from plinth.signals import pre_hostname_change, post_hostname_change
from plinth.signals import domainname_change
from .manifest import clients
from plinth.client import web_client
version = 1
@ -61,10 +60,6 @@ description = [
box_name=_(cfg.box_name))
]
web_clients = [web_client(name='JSXC', url='/plinth/apps/jsxc'),
web_client(name='XMPP client', url='http://xmpp.org/xmpp'
'-software/clients')]
clients = clients
reserved_usernames = ['ejabberd']

View File

@ -28,7 +28,6 @@ from plinth import cfg
from plinth import frontpage
from plinth import service as service_module
from plinth.menu import main_menu
from plinth.client import web_client
from .manifest import clients
@ -61,7 +60,6 @@ description = [
clients = clients
web_clients = [web_client(name='ikiwiki', url='/ikiwiki')]
def init():
"""Initialize the ikiwiki module."""

View File

@ -31,7 +31,6 @@ from plinth.menu import main_menu
from plinth.utils import format_lazy
from plinth.views import ServiceView
from .manifest import clients
from plinth.client import desktop_client
version = 1
@ -56,7 +55,6 @@ description = [
box_name=_(cfg.box_name)),
]
desktop_clients = [desktop_client(name='Gobby', url='https://gobby.github.io/')]
clients = clients

View File

@ -31,7 +31,6 @@ from plinth import frontpage
from plinth import service as service_module
from plinth.menu import main_menu
from plinth.utils import format_lazy
from plinth.client import desktop_client, mobile_client
from .manifest import clients
@ -62,16 +61,6 @@ description = [
clients = clients
desktop_clients = [desktop_client(name='Minetest',
url= 'https://www.minetest.net/downloads/')]
mobile_clients = [
mobile_client(name='Minetest',
fully_qualified_name='net.minetest.mintest',
fdroid_url='https://f-droid.org/packages/net.minetest.minetest/',
play_store_url='https://play.google.com/store/apps/details?'
'id=net.minetest.minetest')]
reserved_usernames = ['Debian-minetest']
CONFIG_FILE = '/etc/minetest/minetest.conf'

View File

@ -28,7 +28,6 @@ from plinth import frontpage
from plinth import service as service_module
from plinth.menu import main_menu
from plinth.views import ServiceView
from plinth.client import desktop_client, mobile_client
from .manifest import clients
@ -55,18 +54,6 @@ description = [
clients = clients
desktop_clients = [
desktop_client(name='Mumble',url= 'https://wiki.mumble.info/wiki/Main_Page')]
mobile_clients = [
mobile_client(name='Mumble',
fully_qualified_name='com.morlunk.mumbleclient',
fdroid_url='https://f-droid.org/packages/com.morlunk'
'.mumbleclient/',
play_store_url='https://play.google.com/store/apps/details'
'?id=com.morlunk.mumbleclient.free')]
reserved_usernames = ['mumble-server']

View File

@ -30,7 +30,6 @@ from plinth import service as service_module
from plinth.menu import main_menu
from plinth.utils import format_lazy
from plinth.views import ServiceView
from plinth.client import mobile_client, desktop_client
from .manifest import clients
version = 1
@ -64,16 +63,6 @@ description = [
clients = clients
desktop_clients = [
desktop_client(name='Quassel', url='http://quassel-irc.org/downloads')]
mobile_clients = [
mobile_client(name='QuasselDroid',
fully_qualified_name='com.iskrembilen.quasseldroid',
fdroid_url=None,
play_store_url='https://play.google.com/store/apps/details?'
'id=com.iskrembilen.quasseldroid')]
reserved_usernames = ['quasselcore']

View File

@ -30,7 +30,6 @@ from plinth import frontpage
from plinth import service as service_module
from plinth.menu import main_menu
from plinth.utils import format_lazy
from plinth.client import desktop_client, mobile_client
from .manifest import clients
@ -57,20 +56,6 @@ description = [
clients = clients
desktop_clients = [desktop_client(name='GNOME Calendar',
url='https://wiki.gnome.org/Apps/Calendar'),
desktop_client(name='Contacts',
url='https://wiki.gnome.org/Apps/Contacts'),
desktop_client(name='Evolution',
url='https://wiki.gnome.org/Apps/Evolution')]
mobile_clients = [
mobile_client(name='DAVdroid',
fully_qualified_name='at.bitfire.davdroid',
fdroid_url=None,
play_store_url='https://play.google.com/store/apps/details'
'?id=at.bitfire.davdroid')]
reserved_usernames = ['radicale']
CONFIG_FILE = '/etc/radicale/config'

View File

@ -28,7 +28,6 @@ from plinth import frontpage
from plinth import service as service_module
from plinth.menu import main_menu
from plinth.views import ServiceView
from plinth.client import desktop_client, mobile_client
from .manifest import clients
version = 2
@ -64,14 +63,6 @@ description = [
clients = clients
desktop_clients = [desktop_client(name='Jitsi',url='https://jitsi.org/')]
mobile_clients = [
mobile_client(name='Csip Simple',fully_qualified_name='com.csipsimple',
fdroid_url=None,
play_store_url='https://play.google.com/store/apps/details'
'?id=com.csipsimple')]
reserved_usernames = ['repro']
service = None

View File

@ -25,7 +25,6 @@ from plinth import cfg
from plinth import service as service_module
from plinth.menu import main_menu
from plinth.utils import format_lazy
from plinth.client import web_client
from .manifest import clients
@ -54,8 +53,6 @@ description = [
clients = clients
web_clients = [web_client(name='reStore web-interface', url='/restore')]
reserved_usernames = ['node-restore']
service = None

View File

@ -26,7 +26,6 @@ from plinth import action_utils
from plinth import frontpage
from plinth import service as service_module
from plinth.menu import main_menu
from plinth.client import web_client
from .manifest import clients
@ -62,8 +61,6 @@ description = [
clients = clients
web_clients = [web_client('Roundcube', '/roundcube')]
service = None

View File

@ -26,7 +26,6 @@ from plinth import action_utils
from plinth import frontpage
from plinth import service as service_module
from plinth.menu import main_menu
from plinth.client import web_client
from .manifest import clients
@ -49,8 +48,6 @@ description = [
clients = clients
web_clients = [web_client(name='Shaarli', url='/shaarli')]
service = None

View File

@ -28,7 +28,6 @@ from plinth import service as service_module
from plinth.menu import main_menu
from plinth.modules.names import SERVICES
from plinth.signals import domain_added, domain_removed
from plinth.client import desktop_client, mobile_client
from .manifest import clients
from . import utils
@ -56,17 +55,6 @@ description = [
clients = clients
desktop_clients = [
desktop_client(name='Tor Browser',
url='https://www.torproject.org/download/download-easy'
'.html.en')]
mobile_clients = [
mobile_client(name='Orbot', fully_qualified_name='org.torproject.android',
fdroid_url='https://guardianproject.info/fdroid/',
play_store_url='https://play.google.com/store/apps/details'
'?id=org.torproject.android')]
reserved_usernames = ['debian-tor']
socks_service = None

View File

@ -23,15 +23,9 @@ import json
from django.utils.translation import ugettext_lazy as _
from plinth import service as service_module
<<<<<<< HEAD
from plinth import action_utils, actions, frontpage
from plinth.menu import main_menu
from plinth.modules.users import add_group
=======
from plinth.client import web_client
from plinth.menu import main_menu
from .manifest import clients
>>>>>>> Add client information for Matrix Synapse and Syncthing
from .manifest import clients
@ -54,11 +48,6 @@ description = [
clients = clients
<<<<<<< HEAD
=======
web_clients = [web_client(name='Transmission', url='/transmission')]
>>>>>>> Add client information for Matrix Synapse and Syncthing
reserved_usernames = ['debian-transmission']
service = None

View File

@ -28,7 +28,6 @@ from plinth import cfg
from plinth import frontpage
from plinth import service as service_module
from plinth.menu import main_menu
from plinth.client import web_client, mobile_client
from .manifest import clients
@ -61,15 +60,6 @@ description = [
clients = clients
web_clients = [web_client(name='TT-RSS', url='/tt-rss')]
mobile_clients = [
mobile_client(name='TTRSS-Reader',
fully_qualified_name='org.ttrssreader',
play_store_url='https://play.google.com/store/apps/details'
'?id=org.ttrssreader',
fdroid_url='https://f-droid.org/packages/org.ttrssreader/')]
service = None

View File

@ -27,7 +27,7 @@
{% for platform in client.platforms %}
{% if platform.type == 'web' %}
<li>
<span><a href="{{ platform.relative_url }}">{{ client.name}}</a></span>
<span><a href="{{ platform.relative_url }}">{{ client.name}}</a></span>
</li>
{% endif %}
{% endfor %}