lp://staging/~florent.x/openobject-server/trunk-refactor-import

Created by Florent and last modified
Get this branch:
bzr branch lp://staging/~florent.x/openobject-server/trunk-refactor-import
Only Florent can upload to this branch. If you are Florent please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Florent
Project:
Odoo Server (MOVED TO GITHUB)
Status:
Mature

Recent revisions

3970. By Florent

[MERGE] merged trunk.

3969. By Vo Minh Thu

[MERGE] use an import hook instead of appending to sys.path.

This replaces sys.path mutation with an import hook. It removes the clash
between our own 'resource' addons and the standard Python resource module. It
provides a transition between our current practice and a cleaner
'openerp.addons' namespace.

The import hook makes it possible to either 'import openerp.addons.hr' or
'import hr' in the addons (ie. both paths are set in sys.modules). When trying
to import an already existing (non-openerp) Python module (e.g. resource), it
will indeed load the Python module and print a warning (to invite you to use
openerp.addons.resource if this is the one you want).

Unfortunately, the import hook doesn't support self-referential imports. E.g.
hr.wizard.xxx can't use 'import hr.yyy' or 'from hr import yyy'. Python will
fail to load hr with cryptic error messages or even a segmentation fault.

Beginning with this patch, 'import openerp.addons.xxx' is the way to go,
'import xxx' is deprecated. Once 'import xxx' support can be removed, we will
probably support pkgutil or setuptool namespaces.

3968. By Vo Minh Thu

[MERGE] added missing import, removed unused vars, corrected unnused variable (typo).

3967. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

3966. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

3965. By Xavier (Open ERP)

[FIX] link between binary field and file name is @filename, not @fieldname

3964. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

3963. By Raphael Collet (OpenERP)

[IMP] base: remove menuitem 'Import Module', as the feature is deprecated

3962. By Raphael Collet (OpenERP)

[IMP] base: hide field 'street2' from company form view

3961. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp://staging/openobject-server
This branch contains Public information 
Everyone can see this information.

Subscribers