summaryrefslogtreecommitdiffstats
path: root/ipsilon/login/common.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-06-27 20:26:22 -0400
committerPatrick Uiterwijk <puiterwijk@redhat.com>2014-08-27 18:15:03 -0400
commit71edd1146556eecb9f9375da46313e94bf82874c (patch)
tree53588020013cf89dd0393f05e24f77f17896af01 /ipsilon/login/common.py
parent734323ca25765e6eecfa63e41b7f3ec12b084ca3 (diff)
downloadipsilon-71edd1146556eecb9f9375da46313e94bf82874c.tar.gz
ipsilon-71edd1146556eecb9f9375da46313e94bf82874c.tar.xz
ipsilon-71edd1146556eecb9f9375da46313e94bf82874c.zip
Use new Log class everywhere
Replace copies of _debug function sprinkled all over the code with a single implementation Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com> - Removed replace of self._debug to self.debug
Diffstat (limited to 'ipsilon/login/common.py')
-rwxr-xr-xipsilon/login/common.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/ipsilon/login/common.py b/ipsilon/login/common.py
index a576345..acd6d94 100755
--- a/ipsilon/login/common.py
+++ b/ipsilon/login/common.py
@@ -17,6 +17,7 @@
# 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 ipsilon.util.log import Log
from ipsilon.util.page import Page
from ipsilon.util.user import UserSession
from ipsilon.util.plugin import PluginLoader, PluginObject
@@ -24,7 +25,7 @@ from ipsilon.util.plugin import PluginInstaller
import cherrypy
-class LoginManagerBase(PluginObject):
+class LoginManagerBase(PluginObject, Log):
def __init__(self):
super(LoginManagerBase, self).__init__()
@@ -68,10 +69,6 @@ class LoginManagerBase(PluginObject):
raise cherrypy.HTTPRedirect(ref)
- def _debug(self, fact):
- if cherrypy.config.get('debug', False):
- cherrypy.log(fact)
-
def get_tree(self, site):
raise NotImplementedError