X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=ipsilon%2Flogin%2Fcommon.py;h=acd6d941dd9859454ecacdaf1a0ccda3ac934e14;hp=f0efebde09e13897bc3674acdfc951a77a856709;hb=71edd1146556eecb9f9375da46313e94bf82874c;hpb=1e66ada5e35cd69841eb314062266745b0755174 diff --git a/ipsilon/login/common.py b/ipsilon/login/common.py index f0efebd..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 . +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 @@ -108,7 +105,7 @@ class LoginManagerBase(PluginObject): if self not in plugins['enabled']: return - #remove self from chain + # remove self from chain root = plugins['root'] if root.first_login == self: root.first_login = self.next_login