Changeset 65
- Timestamp:
- 08/17/07 11:36:19
- Files:
-
- sodar/trunk/sodar/data.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sodar/trunk/sodar/data.py
r64 r65 123 123 ''',re.DOTALL | re.VERBOSE) 124 124 self.__dict__.update(samplePattern.match(sample.strip()).groupdict()) 125 # self.__dict__.get covers parsing invalid Samples126 self.header = self.__dict__.get('header', None)125 # getattr with default covers parsing invalid Samples 126 self.header = getattr(self, 'header', None) 127 127 if self.header is not None: 128 128 self.header = Header(self.header) 129 self.body = self.__dict__.get('body', None)129 self.body = getattr(self, 'body', None) 130 130 if self.body is not None: 131 131 self.body = Body(self.body)