Changeset 4849 for waeup/branches/ulif-importers
- Timestamp:
- 18 Jan 2010, 06:53:41 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-importers/src/waeup/datacenter.py
r4822 r4849 202 202 self.size = self.getSize() 203 203 self.uploaddate = self.getDate() 204 self.lines = self.getLinesNumber() 204 205 205 206 def getDate(self): … … 222 223 return size 223 224 225 def getLinesNumber(self): 226 """Get number of lines. 227 """ 228 num = 0 229 for line in open(self.context, 'rb'): 230 num += 1 231 return num 232 224 233 class LogFile(DataCenterFile): 225 234 """A description of a log file.
Note: See TracChangeset for help on using the changeset viewer.