doc/api/cwvreg.rst
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 28 Jan 2016 18:17:30 +0100
changeset 11090 b4b854c25de5
parent 10499 d0907690af55
child 12813 9c151701d63e
permissions -rw-r--r--
[repository] set .eid on eschema when schema is loaded from the filesystem enforcing the contract that a repository's schema should have .eid attribute of entity schema set to the eid of the entity used to serialize them in the db. Before this cset, this was not true during tests or for some c-c commands where 'quick_start' is set (eg db-restore, i18ncube...). The change in server __init__ makes this assumption true during instance creation: the serializing code was actually setting eid on schema object, but a reference to a previously built schema was given instead of the one for the latest created repository. Closes #10450092

.. _cwvreg_module:

:mod:`cubicweb.cwvreg`
======================

.. automodule:: cubicweb.cwvreg

    .. autoclass:: CWRegistryStore
        :show-inheritance:
        :members:
        :undoc-members:

    .. autoclass:: CWRegistry
        :show-inheritance:
        :members: schema, poss_visible_objects, select

    .. autoclass:: InstancesRegistry
        :show-inheritance:
        :members:

    .. autoclass:: ETypeRegistry
        :show-inheritance:
        :members:

    .. autoclass:: ViewsRegistry
        :show-inheritance:
        :members:

    .. autoclass:: ActionsRegistry
        :show-inheritance:
        :members:

    .. autoclass:: CtxComponentsRegistry
        :show-inheritance:
        :members:

    .. autoclass:: BwCompatCWRegistry
        :show-inheritance:
        :members:


:mod:`logilab.common.registry`
==============================

.. automodule:: logilab.common.registry