Index: sodar/branches/scintec-branch/sodar/scintec/maindata.py =================================================================== --- sodar/branches/scintec-branch/sodar/scintec/maindata.py (revision 263) +++ sodar/branches/scintec-branch/sodar/scintec/maindata.py (revision 264) @@ -215,27 +215,15 @@ self.update(dict(zip(variables,data))) - #self.__dict__.update(self) - - def _getPropertyFactory(name): - """ - """ - - def _getProperty(self): - return self[name] - return _getProperty - - for variable in variables: - setattr(self.__class__,variable,property(_getPropertyFactory(variable))) - - #def __getattr__(self,name): - # """ - # """ - # - # if name in self: - # return self[name] - # else: - # raise AttributeError, ' '.join([repr(self.__class__.__name__), - # 'object has no attribute', - # repr(name)]) + + def __getattr__(self,name): + """ + """ + + if name in self: + return self[name] + else: + raise AttributeError, ' '.join([repr(self.__class__.__name__), + 'object has no attribute', + repr(name)]) def _test():