[enh] start to work on journals

This commit is contained in:
Laurent Peuch 2016-06-24 02:07:28 +02:00
parent 542528ab05
commit eef247d34b
2 changed files with 58 additions and 0 deletions

View file

@ -1588,3 +1588,15 @@ hook:
-d: -d:
full: --chdir full: --chdir
help: The directory from where the script will be executed help: The directory from where the script will be executed
#############################
# Journals #
#############################
journals:
category_help: Manage debug journals
actions:
### domain_list()
list:
action_help: List journals
api: GET /journals

46
src/yunohost/journals.py Normal file
View file

@ -0,0 +1,46 @@
# -*- coding: utf-8 -*-
""" License
Copyright (C) 2016 YunoHost
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
"""
""" yunohost_journals.py
Manage debug journals
"""
import os
from moulinette.utils.log import getActionLogger
JOURNALS_PATH = '/var/log/journals/'
logger = getActionLogger('yunohost.journals')
def journals_list():
"""
List domains
Keyword argument:
filter -- LDAP filter used to search
offset -- Starting number for domain fetching
limit -- Maximum number of domain fetched
"""
return {}