[FIX] (ugly) logout method must not return None

lp bug: https://launchpad.net/bugs/307226 fixed

bzr revid: christophe@tinyerp.com-20081211173712-bhbh03oykm6kdz4h
This commit is contained in:
Christophe Simonis 2008-12-11 18:37:12 +01:00
parent cfe89367cd
commit 05006c78fd
1 changed files with 3 additions and 1 deletions

View File

@ -321,6 +321,7 @@ class common(netsvc.Service):
return res or False
def logout(self, db, login, password):
# FIXME: WTF !!! what is this hardcoding ?
res = security.logout(db, login, password)
service = netsvc.LocalService("object_proxy")
fields = service.execute(db, login, 'res.users', 'fields_get', {})
@ -338,7 +339,8 @@ class common(netsvc.Service):
pass
logger = netsvc.Logger()
logger.notifyChannel("web-service", netsvc.LOG_INFO,'Logout=>%s from database %s'%(res,db.lower()))
return True
def about(self, extended=False):