def __getattr__(self, attr): if attr in ["_ref_data", "_deref_data"]: raise AttributeError() if not attr in self._deref_data: if not attr in self._ref_data: raise AttributeError() val = self._ref_data.get(attr) self._deref_data[attr] = refs.complex_to_entities(val) return self._deref_data.get(attr)
def __getattr__(self, attr): if attr in ['_ref_data', '_deref_data']: raise AttributeError() if not attr in self._deref_data: if not attr in self._ref_data: raise AttributeError() val = self._ref_data.get(attr) self._deref_data[attr] = refs.complex_to_entities(val) return self._deref_data.get(attr)
def _get_data(self): return refs.complex_to_entities(self._ref_data)