cubicweb/cwvreg.py
changeset 11767 432f87a63057
parent 11765 9cb215e833b0
child 11900 8496135b6dc1
equal deleted inserted replaced
11766:d8de1ac21f36 11767:432f87a63057
     1 # copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 """
    18 """
    19 Cubicweb registries
    19 Cubicweb registries
    20 """
    20 """
    21 
    21 
    22 __docformat__ = "restructuredtext en"
       
    23 from cubicweb import _
       
    24 
       
    25 import sys
    22 import sys
    26 from os.path import join, dirname, realpath
    23 from os.path import join, dirname, realpath
    27 from warnings import warn
    24 from warnings import warn
    28 from datetime import datetime, date, time, timedelta
    25 from datetime import datetime, date, time, timedelta
    29 from functools import reduce
    26 from functools import reduce
    36 from logilab.common.registry import RegistryStore, Registry, ObjectNotFound, RegistryNotFound
    33 from logilab.common.registry import RegistryStore, Registry, ObjectNotFound, RegistryNotFound
    37 
    34 
    38 from rql import RQLHelper
    35 from rql import RQLHelper
    39 from yams.constraints import BASE_CONVERTERS
    36 from yams.constraints import BASE_CONVERTERS
    40 
    37 
       
    38 from cubicweb import _
    41 from cubicweb import (CW_SOFTWARE_ROOT, ETYPE_NAME_MAP, CW_EVENT_MANAGER,
    39 from cubicweb import (CW_SOFTWARE_ROOT, ETYPE_NAME_MAP, CW_EVENT_MANAGER,
    42                       onevent, Binary, UnknownProperty, UnknownEid)
    40                       onevent, Binary, UnknownProperty, UnknownEid)
    43 from cubicweb.predicates import appobject_selectable, _reset_is_instance_cache
    41 from cubicweb.predicates import appobject_selectable, _reset_is_instance_cache
    44 
    42 
    45 
    43