[IMP] report: remove the print statement upon report registration.
bzr revid: vmt@openerp.com-20130222151311-xz609m3o5jazo7ld
This commit is contained in:
parent
ef127fddc7
commit
48d1bce6ec
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue