cubicweb/rtags.py
changeset 11870 3a84a79c4ed5
parent 11767 432f87a63057
child 11885 e93a01a69035
equal deleted inserted replaced
11869:d8b66e3fd335 11870:3a84a79c4ed5
    36    * ``tag_attribute`` shortcut for tag_subject_of
    36    * ``tag_attribute`` shortcut for tag_subject_of
    37 """
    37 """
    38 
    38 
    39 
    39 
    40 import logging
    40 import logging
    41 from warnings import warn
       
    42 
    41 
    43 from six import string_types
    42 from six import string_types
    44 
    43 
    45 from logilab.common.logging_ext import set_log_methods
    44 from logilab.common.logging_ext import set_log_methods
    46 from logilab.common.registry import RegistrableInstance, yes
    45 from logilab.common.registry import RegistrableInstance, yes
    47 
    46 
       
    47 
    48 def _ensure_str_key(key):
    48 def _ensure_str_key(key):
    49     return tuple(str(k) for k in key)
    49     return tuple(str(k) for k in key)
       
    50 
    50 
    51 
    51 class RegistrableRtags(RegistrableInstance):
    52 class RegistrableRtags(RegistrableInstance):
    52     __registry__ = 'uicfg'
    53     __registry__ = 'uicfg'
    53     __select__ = yes()
    54     __select__ = yes()
    54 
    55