Changeset 233
- Timestamp:
- 07/22/02 00:49:26 (6 years ago)
- Files:
-
- trunk/RBPrivate/Prototypes/Larry/parsechanges.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBPrivate/Prototypes/Larry/parsechanges.py
r232 r233 13 13 SubHead = '<font face="arial" size="1" color="FFCC33">%s</font><br>' 14 14 SubItem = '<font face="arial" size="1" color="D5F6A8">- %s</font><br>' 15 LineCount = 20 16 OutputList = [] 15 17 16 18 # Open the file and create an Objectified Object … … 19 21 # Create a list of all releases and traverse the list 20 22 for Release in AllChanges.release: 21 # Printthe date, version, and description of the release22 print Headline % (Release.date + " - version " + Release.version)23 print Headline % ("(" + Release().strip() + ")")24 print Headline % ("-" * 30)23 # Append the date, version, and description of the release 24 OutputList.append(Headline % (Release.date + " - version " + Release.version)) 25 OutputList.append(Headline % ("(" + Release().strip() + ")")) 26 OutputList.append(Headline % ("-" * 30)) 25 27 26 28 #Create a list of features within the release and traverse the list 27 29 for Feature in Release.features: 28 # Printthe feature's title29 print SubHead % (Feature.title)30 # Append the feature's title 31 OutputList.append(SubHead % (Feature.title)) 30 32 # Create a list of items within each feature and traverse the list 31 33 for data in filter(None, map(str.strip, Feature(None))): 32 # Printthe feature's item33 print SubItem % data34 # Append the feature's item 35 OutputList.append(SubItem % data) 34 36 35 print "<br>"37 OutputList.append("<br>") 36 38 37 print "<br>" 39 OutputList.append("<br>") 40 41 # Print the parsed data, but only the number of lines specified by LineCount 42 for index in range(LineCount): 43 print OutputList[index] 38 44 39 45
