X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=blobdiff_plain;f=ipsilon%2Flogin%2Fauthtest.py;h=7769650fe7b94d8f33646602a849f5774ee3e803;hp=7fc41607727514824390ed35207fde046c65d6b2;hb=aa5dc3b417db962a075a092d0d3528010c1059f7;hpb=cd0a566562d0279d13c3df08366bc38acf53011a diff --git a/ipsilon/login/authtest.py b/ipsilon/login/authtest.py index 7fc4160..7769650 100644 --- a/ipsilon/login/authtest.py +++ b/ipsilon/login/authtest.py @@ -20,6 +20,7 @@ from ipsilon.login.common import LoginFormBase, LoginManagerBase, \ from ipsilon.util.plugin import PluginObject from ipsilon.util import config as pconfig import cherrypy +import logging class TestAuth(LoginFormBase): @@ -36,7 +37,8 @@ class TestAuth(LoginFormBase): 'givenname': 'Test User', 'surname': username, 'fullname': 'Test User %s' % username, - 'email': '%s@example.com' % username + 'email': '%s@example.com' % username, + '_groups': [username] } return self.lm.auth_successful(self.trans, username, 'password', testdata) @@ -45,7 +47,7 @@ class TestAuth(LoginFormBase): error = "Authentication failed" else: error = "Username or password is missing" - cherrypy.log.error("Error: " + error) + cherrypy.log.error("Error: " + error, severity=logging.ERROR) context = self.create_tmpl_context( username=username, @@ -119,7 +121,7 @@ class Installer(LoginManagerInstaller): if opts['testauth'] != 'yes': return - print self.pargs + logging.debug(self.pargs) # Add configuration data to database po = PluginObject(*self.pargs) po.name = 'testauth'