[REF] web_services: removed unused class.

bzr revid: vmt@openerp.com-20110728120204-ezzhvkbvlw134n2b
This commit is contained in:
Vo Minh Thu 2011-07-28 14:02:04 +02:00
parent b3b00733af
commit 5c24a193f7
1 changed files with 2 additions and 16 deletions

View File

@ -357,23 +357,9 @@ class db(netsvc.ExportService):
raise
return True
class _ObjectService(netsvc.ExportService):
"A common base class for those who have fn(db, uid, password,...) "
def common_dispatch(self, method, auth, params):
(db, uid, passwd ) = params[0:3]
params = params[3:]
security.check(db,uid,passwd)
cr = pooler.get_db(db).cursor()
fn = getattr(self, 'exp_'+method)
res = fn(cr, uid, *params)
cr.commit()
cr.close()
return res
class common(_ObjectService):
class common(netsvc.ExportService):
def __init__(self,name="common"):
_ObjectService.__init__(self,name)
netsvc.ExportService.__init__(self,name)
self.joinGroup("web-services")
def dispatch(self, method, auth, params):