src/westferry/backend/__version__.py \
src/westferry/backend/base.py \
src/westferry/backend/graphs.py \
- src/westferry/backend/main.py \
src/westferry/backend/system.py
westferry_backenddir = $(pythondir)/westferry/backend
# #
###############################################################################
-from .main import Backend
+from .__version__ import VERSION
+
+from . import graphs
+from . import system
+
+class Backend(object):
+ version = VERSION
+
+ def __init__(self, debug=False):
+ self.debug = True
+
+ self.graphs = graphs.GraphsBackend(self)
+ self.system = system.SystemBackend(self)
+++ /dev/null
-#!/usr/bin/python3
-###############################################################################
-# #
-# Westferry - The IPFire web user interface #
-# Copyright (C) 2015 IPFire development team #
-# #
-# This program is free software: you can redistribute it and/or modify #
-# it under the terms of the GNU 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 General Public License for more details. #
-# #
-# You should have received a copy of the GNU General Public License #
-# along with this program. If not, see <http://www.gnu.org/licenses/>. #
-# #
-###############################################################################
-
-from .__version__ import VERSION
-
-from . import graphs
-from . import system
-
-class Backend(object):
- version = VERSION
-
- def __init__(self):
- self.graphs = graphs.GraphsBackend(self)
- self.system = system.SystemBackend(self)