Changeset 233

Show
Ignore:
Timestamp:
07/22/02 00:49:26 (6 years ago)
Author:
lking
Message:

Added LineCount? capability to the sidebar function.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBPrivate/Prototypes/Larry/parsechanges.py

    r232 r233  
    1313    SubHead = '<font face="arial" size="1" color="FFCC33">%s</font><br>' 
    1414    SubItem = '<font face="arial" size="1" color="D5F6A8">- %s</font><br>' 
     15    LineCount = 20 
     16    OutputList = [] 
    1517     
    1618    # Open the file and create an Objectified Object 
     
    1921    # Create a list of all releases and traverse the list 
    2022    for Release in AllChanges.release: 
    21         # Print the date, version, and description of the release 
    22         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)
    2527 
    2628        #Create a list of features within the release and traverse the list 
    2729        for Feature in Release.features: 
    28             # Print the feature's title 
    29             print SubHead % (Feature.title
     30            # Append the feature's title 
     31            OutputList.append(SubHead % (Feature.title)
    3032            # Create a list of items within each feature and traverse the list 
    3133            for data in filter(None, map(str.strip, Feature(None))): 
    32                 # Print the feature's item 
    33                 print SubItem % data 
     34                # Append the feature's item 
     35                OutputList.append(SubItem % data) 
    3436 
    35             print "<br>" 
     37            OutputList.append("<br>") 
    3638 
    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] 
    3844 
    3945