[IMP] report: remove the print statement upon report registration.

bzr revid: vmt@openerp.com-20130222151311-xz609m3o5jazo7ld
This commit is contained in:
Vo Minh Thu 2013-02-22 16:13:11 +01:00
parent ef127fddc7
commit 48d1bce6ec
1 changed files with 2 additions and 4 deletions

View File

@ -45,10 +45,8 @@ class report_int(object):
def __init__(self, name, register=True):
if register:
print "*** Registering report `%s` but it should be registered trough data declaration instead. ***" % name
if not name.startswith('report.'):
raise Exception('ConceptionError, bad report name, should start with "report."')
assert name not in self._reports, 'The report "%s" already exists!' % name
assert name.startswith('report.'), 'Report names should start with "report.".'
assert name not in self._reports, 'The report "%s" already exists.' % name
self._reports[name] = self
else:
# The report is instanciated at each use site, which is ok.