debian/cubicweb-common.install
author Denis Laxalde <denis.laxalde@logilab.fr>
Wed, 31 Aug 2016 11:53:21 +0200
changeset 11457 d404fd8499dd
parent 10559 5821ae654dfd
permissions -rw-r--r--
Add an import redirect hook from "cubes.<name>" to "cubicweb_<name>" The hook consists of a finder and a loader implemented following PEP-302; it is responsible for loading cubes distributed as packages (i.e. installed as ``cubicweb_<name>`` in site-packages) but imported (in client code) as ``from cubes.<name> import ...``. So this is a transitional mechanism allowing cubes following the new layout to be used by old-style cubes/applications. The importer is installed upon calling CubicWebConfiguration's cls_adjust_sys_path method (also called in cubicweb.devtools.__init__.py, which is a prerequisite for importing any "legacy" cube. The loading of old-style cubes is still handled by the CubicWeb configuration, based on adjustment of sys.path etc. Related to #13001466.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10559
5821ae654dfd [pkg] various debian packaging fixes
Julien Cristau <julien.cristau@logilab.fr>
parents: 9208
diff changeset
     1
usr/lib/python2*/*-packages/cubicweb/entities/
5821ae654dfd [pkg] various debian packaging fixes
Julien Cristau <julien.cristau@logilab.fr>
parents: 9208
diff changeset
     2
usr/lib/python2*/*-packages/cubicweb/ext/
9208
7ae95f48e2f0 [pkg] fix debian packaging (closes #3058542)
David Douard <david.douard@logilab.fr>
parents: 8073
diff changeset
     3
usr/share/cubicweb/cubes/
10559
5821ae654dfd [pkg] various debian packaging fixes
Julien Cristau <julien.cristau@logilab.fr>
parents: 9208
diff changeset
     4
usr/lib/python2*/*-packages/cubicweb/*.py