doc/stdlib.txt
author Denis Laxalde <denis.laxalde@logilab.fr>
Wed, 31 Aug 2016 11:53:21 +0200
changeset 11457 d404fd8499dd
parent 5767 1d811df051c2
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:
2432
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     1
addressbook
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     2
basket
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     3
blog
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     4
book
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     5
calendar
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     6
comment
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     7
company
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     8
email
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
     9
file
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    10
folder
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    11
i18ncontent
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    12
keyword
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    13
link
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    14
mailinglist
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    15
person
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    16
tag
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    17
timeseries
986718a355fa [stdlib] list of cubes included in the cubes standard library
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents:
diff changeset
    18
vcsfile