return item
def __call__(self, target_self, *args, **kwargs):
+ target_self_cls_name = reflection.get_class_name(target_self,
+ fully_qualified=False)
if not hasattr(target_self, '_cache'):
raise NotImplementedError(
- "Instance of class %(module)s.%(class)s must contain _cache "
- "attribute" % {
+ _("Instance of class %(module)s.%(class)s must contain _cache "
+ "attribute") % {
'module': target_self.__module__,
- 'class': target_self.__class__.__name__})
+ 'class': target_self_cls_name})
if not target_self._cache:
if self._first_call:
LOG.debug("Instance of class %(module)s.%(class)s doesn't "