def __setitem__(self, resname, resval): """__setitem__""" if not self._has_value: # load the cached resource value _pbs_v1.load_resource_value(self) setattr(self, resname, resval);
def __setitem__(self, resname, resval): """__setitem__""" if not self._has_value: # load the cached resource value _pbs_v1.load_resource_value(self) setattr(self, resname, resval);
def __getitem__(self, resname): """__getitem__""" if not self._has_value: # load the cached resource value _pbs_v1.load_resource_value(self) return getattr(self, resname)
def __getitem__(self, resname): """__getitem__""" if not self._has_value: # load the cached resource value _pbs_v1.load_resource_value(self) return getattr(self, resname)