From 0eb7b75f76f33f2506d905ec294c3302454512e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 22 Jun 2009 10:52:27 +0200 Subject: [PATCH] Add docstring to Report.execute --- trytond/report/report.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/trytond/report/report.py b/trytond/report/report.py index e1e5069810..b0c7cd821d 100644 --- a/trytond/report/report.py +++ b/trytond/report/report.py @@ -82,6 +82,21 @@ class Report(object): pass def execute(self, cursor, user, ids, datas, context=None): + ''' + Execute the report. + + :param cursor: the database cursor + :param user: the user id + :param ids: a list of record ids on which execute report + :param datas: a dictionary with datas that will be set in + local context of the report + :param context: the context + :return: a tuple with: + report type, + base64 encoded data, + a boolean to direct print, + the report name + ''' if context is None: context = {} action_report_obj = self.pool.get('ir.action.report')