| Hi I'm trying to add a logout fonction to the identity filter. So I've made a logout form: <form action="" method="POST"> <input type="hidden" name="f_logout" id="f_logout" value="true"/> <input type="submit" value="logout"/> </form> Then in the filter.py I've tried to add logout_field= params.pop("f_logout") (on line 138 latest SVN) (for testing I wrote the "f_logout" but I'll then use the config file for that. I was about to add a test if logout_field=="true": identity= None But when I do that I get the following error: Traceback (most recent call last): File "/Users/benoitm/Python2.4.2/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py", line 271, in run main() File "/Users/benoitm/Python2.4.2/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py", line 502, in main body = page_handler(*args, **cherrypy.request.paramMap) File "/Users/benoitm/developpement/workspace/trunk/turbogears/controllers.py", line 205, in newfunc output = func(self, *args, **kw) TypeError: index() got an unexpected keyword argument 'f_logout' |
- [TurboGears] logout for identity Benoit Masson
- [TurboGears] Re: logout for identity Jason Chu
- [TurboGears] Re: logout for identity Benoit Masson

