X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=ipsilon%2Flogin%2Fcommon.py;h=54706263185071f76165e2b0dc4153623fdfe7c1;hp=a5763455048fd5d1ca49c0b5e35831253c382ab6;hb=f7b6d96d284f78b8ee94d252b37e874dc32baf2b;hpb=c4aa2a8fc207d464aa23e065b5f2ad0549a58f5e diff --git a/ipsilon/login/common.py b/ipsilon/login/common.py index a576345..5470626 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__() @@ -43,12 +44,7 @@ class LoginManagerBase(PluginObject): if not ref: ref = cherrypy.config.get('base.mount', "") + '/' - session.login(username) - - # Save additional data provided by the login manager - if userdata: - for key in userdata: - session.save_data('user', key, userdata[key]) + session.login(username, userdata) raise cherrypy.HTTPRedirect(ref) @@ -68,10 +64,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