This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
class LazyMapperItem(object): | |
def __init__(self, item, mapping): | |
self.__item = item | |
self.__mapping = mapping | |
def __getattr__(self, name): | |
try: | |
real_name = self.__mapping[name] |