Permalink
Browse files

Customizable LogoutHandler

  • Loading branch information...
1 parent bc0e8aa commit 986e25e2420d66fc7af2fbb4c10d04e683c19cc3 @khangnguyen khangnguyen committed Nov 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 warp/webserver/resource.py
@@ -36,10 +36,11 @@ def __init__(self):
templateLookup.__init__(directories=[siteTemplateDir, warpTemplateDir], output_encoding="utf-8")
handle_login = config.get('loginHandler', self.handle_login)
+ handle_logout = config.get('logoutHandler', self.handle_logout)
self.dispatch = {
'__login__': handle_login,
- '__logout__': self.handle_logout,
+ '__logout__': handle_logout,
'_comet': self.handle_comet,
'_warp': self.handle_warpstatic,
'': self.handle_default,

0 comments on commit 986e25e

Please sign in to comment.