[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:
parent
cfe89367cd
commit
05006c78fd
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue