Merge lp://staging/~openerp-dev/openobject-server/7.0-import-non-local-warning-mat into lp://staging/openobject-server/7.0
Proposed by
Martin Trigaux (OpenERP)
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~openerp-dev/openobject-server/7.0-import-non-local-warning-mat |
Merge into: | lp://staging/openobject-server/7.0 |
Diff against target: |
45 lines (+11/-2) 2 files modified
openerp/service/workers.py (+2/-1) openerp/tools/misc.py (+9/-1) |
To merge this branch: | bzr merge lp://staging/~openerp-dev/openobject-server/7.0-import-non-local-warning-mat |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lionel Sausin - Initiatives/Numérigraphe (community) | Needs Information | ||
OpenERP Core Team | Pending | ||
Review via email: mp+210399@code.staging.launchpad.net |
Description of the change
Avoiding to get the warning message when importing the python module 'resource'.
Way to reproduce:
- launch openerp with --workers=1
-> get WARNING ? openerp.
Ambiguous import: the OpenERP module `resource` is shadowed by another
module (available at /usr/lib/
To import it, use `import openerp.
Probably a bit overkill, not sure we should merge that...
Another way would be to simply reduce the log level to 'debug'
To post a comment you must log in.
Unmerged revisions
- 5257. By Martin Trigaux (OpenERP)
-
[IMP] import resource (python module) in a way we avoid triggering the warning (name clash with module resource)
Why would import openerp. addons. resource not work ?