Implement database upgrade for indexes
[cascardo/ipsilon.git] / ipsilon / root.py
old mode 100755 (executable)
new mode 100644 (file)
index e214115..daef90f
@@ -1,21 +1,4 @@
-#!/usr/bin/python
-#
-# Copyright (C) 2013  Simo Sorce <simo@redhat.com>
-#
-# see file 'COPYING' for use and warranty information
-#
-# 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/>.
+# Copyright (C) 2013 Ipsilon project Contributors, for license see COPYING
 
 from ipsilon.util.page import Page
 from ipsilon.util import errors
@@ -23,9 +6,12 @@ from ipsilon.login.common import Login
 from ipsilon.login.common import Logout
 from ipsilon.admin.common import Admin
 from ipsilon.providers.common import LoadProviders
+from ipsilon.admin.loginstack import LoginStack
 from ipsilon.admin.info import InfoPlugins
 from ipsilon.admin.login import LoginPlugins
 from ipsilon.admin.providers import ProviderPlugins
+from ipsilon.rest.common import Rest
+from ipsilon.rest.providers import RestProviderPlugins
 import cherrypy
 
 sites = dict()
@@ -56,9 +42,12 @@ class Root(Page):
 
         # after all plugins are setup we can instantiate the admin pages
         self.admin = Admin(self._site, 'admin')
-        InfoPlugins(self._site, self.admin)
-        LoginPlugins(self._site, self.admin)
+        self.rest = Rest(self._site, 'rest')
+        self.stack = LoginStack(self._site, self.admin)
+        LoginPlugins(self._site, self.stack)
+        InfoPlugins(self._site, self.stack)
         ProviderPlugins(self._site, self.admin)
+        RestProviderPlugins(self._site, self.rest)
 
     def root(self):
         self.debug(self.html_heads)