Files
tryton/trytond/web_service/report.py
T
2008-01-06 20:14:01 +01:00

17 lines
556 B
Python

from trytond.netsvc import Service, LocalService
from trytond import security
class Report(Service):
def __init__(self, name='report'):
Service.__init__(self, name)
Service.join_group(self, 'web-services')
Service.export_method(self, self.execute)
def execute(self, database, user, passwd, report_name, ids, datas=None,
context=None):
security.check(database, user, passwd)
report = LocalService('report_proxy')
return report.execute(database, user, report_name, ids, datas, context)