cubicweb/test/data/bootstrap_cubes
author Denis Laxalde <denis.laxalde@logilab.fr>
Wed, 31 Aug 2016 11:53:21 +0200
changeset 11457 d404fd8499dd
parent 11057 0b59724cb3f2
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:
10529
747eded13c68 [test] use FakeFile instead of File in test_fulltextindex
Julien Cristau <julien.cristau@logilab.fr>
parents: 7797
diff changeset
     1
card, tag, localperms