mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
app: info: Move client validation to info component
- Each app does not have to call the validator by itself. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
5f3c691c38
commit
6fc9e228a0
32 files changed
+105
-106
No files matched your search
@@ -2,12 +2,10 @@
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from plinth.clients import validate
|
||||
|
||||
CONFIG_FILE = '/etc/gitweb-freedombox.conf'
|
||||
GIT_REPO_PATH = '/var/lib/git'
|
||||
|
||||
clients = validate([
|
||||
clients = [
|
||||
{
|
||||
'name': _('Gitweb'),
|
||||
'platforms': [{
|
||||
@@ -32,7 +30,7 @@ clients = validate([
|
||||
'url': 'https://git-scm.com/download/windows'
|
||||
}]
|
||||
},
|
||||
])
|
||||
]
|
||||
|
||||
backup = {
|
||||
'config': {
|
||||
|
||||
Reference in new issue
Block a user