Skip to content

Commit

Permalink
Review all init files of packages inside qobjects
Browse files Browse the repository at this point in the history
Ref #263
  • Loading branch information
algorys committed Mar 7, 2018
1 parent 1533eb4 commit 521b5ad
Show file tree
Hide file tree
Showing 9 changed files with 80 additions and 6 deletions.
25 changes: 25 additions & 0 deletions alignak_app/qobjects/alignak/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) 2015-2018:
# Matthieu Estrada, ttamalfor@gmail.com
#
# This file is part of (AlignakApp).
#
# (AlignakApp) 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.
#
# (AlignakApp) 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 (AlignakApp). If not, see <http://www.gnu.org/licenses/>.

"""
The Alignak package contains QObjects to display global alignak data, including
``alignakdaemon`` and ``livesynthesis`` endpoints
"""
2 changes: 1 addition & 1 deletion alignak_app/qobjects/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# along with (AlignakApp). If not, see <http://www.gnu.org/licenses/>.

"""
The Common package contains common QObjects for Alignak-app
The Common package contains common QObjects for Alignak-app, used by several other QWidgets
"""
25 changes: 25 additions & 0 deletions alignak_app/qobjects/events/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) 2015-2018:
# Matthieu Estrada, ttamalfor@gmail.com
#
# This file is part of (AlignakApp).
#
# (AlignakApp) 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.
#
# (AlignakApp) 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 (AlignakApp). If not, see <http://www.gnu.org/licenses/>.

"""
The Events package contains QObjects to view events collected by the application, like
notifications in history, hosts spied, actions performed by the user
"""
2 changes: 1 addition & 1 deletion alignak_app/qobjects/events/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ def get_color_event(event_type):
if event_type in available_colors[key]:
return key

return '#e74c3c'
return '#e74c3c'
24 changes: 24 additions & 0 deletions alignak_app/qobjects/host/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) 2015-2018:
# Matthieu Estrada, ttamalfor@gmail.com
#
# This file is part of (AlignakApp).
#
# (AlignakApp) 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.
#
# (AlignakApp) 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 (AlignakApp). If not, see <http://www.gnu.org/licenses/>.

"""
The Host package contains QObjects to display data of the backend ``host``s
"""
2 changes: 1 addition & 1 deletion alignak_app/qobjects/login/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# along with (AlignakApp). If not, see <http://www.gnu.org/licenses/>.

"""
The Login package contains QObjects to display connection windows
The Login package contains QObjects to display connection windows, for login and server settings
"""
2 changes: 1 addition & 1 deletion alignak_app/qobjects/service/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@

"""
The Service package contains QObjects to display data of the backend ``service``s
"""
"""
2 changes: 1 addition & 1 deletion alignak_app/qobjects/systray/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# along with (AlignakApp). If not, see <http://www.gnu.org/licenses/>.

"""
The Systray package contains classes who create QSystemTrayIcon UI.
The Service package contains QObjects to display system tray icon (taskbar)
"""
2 changes: 1 addition & 1 deletion alignak_app/qobjects/threads/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
# along with (AlignakApp). If not, see <http://www.gnu.org/licenses/>.

"""
The Threads package contains classes who manage application threads
The Threads package contains QObjects who manage application QThreads
"""

0 comments on commit 521b5ad

Please sign in to comment.