[IMP] addons: create a warning log to inform the user/developper that

there is a missing description file

bzr revid: stephane@openerp.com-20100312123106-098u2qvczg6zxwjb
This commit is contained in:
Stephane Wirtel
2010-03-12 13:31:06 +01:00
parent 4eadbbf6c6
commit a74a26a113
+4 -1
View File
@@ -41,6 +41,8 @@ import base64
from zipfile import PyZipFile, ZIP_DEFLATED
from cStringIO import StringIO
import logging
logger = netsvc.Logger()
@@ -303,7 +305,8 @@ def load_information_from_description_file(module):
if os.path.isfile(description_file):
return eval(tools.file_open(description_file).read())
raise Exception('The module %s does not contain a description file: __openerp__.py or __terp__.py (deprecated)' % module)
logging.warning('The module %s does not contain a description file: __openerp__.py or __terp__.py (deprecated)' % module)
return {}
def get_modules_with_version():
modules = get_modules()