vregistry.py
changeset 4013 f0d1038e5059
parent 3674 387d51af966d
child 4252 6c4f109c2b03
equal deleted inserted replaced
4012:f6c65e04704c 4013:f0d1038e5059
    62     """returns a unique identifier for an appobject class"""
    62     """returns a unique identifier for an appobject class"""
    63     if 'id' in cls.__dict__:
    63     if 'id' in cls.__dict__:
    64         warn('[3.6] %s.%s: id is deprecated, use __regid__'
    64         warn('[3.6] %s.%s: id is deprecated, use __regid__'
    65              % (cls.__module__, cls.__name__), DeprecationWarning)
    65              % (cls.__module__, cls.__name__), DeprecationWarning)
    66         cls.__regid__ = cls.id
    66         cls.__regid__ = cls.id
    67     if hasattr(cls, 'id'):
    67     if hasattr(cls, 'id') and not isinstance(cls.id, property):
    68         return cls.id
    68         return cls.id
    69     return cls.__regid__
    69     return cls.__regid__
    70 
    70 
    71 
    71 
    72 class Registry(dict):
    72 class Registry(dict):