Changeset 2200

Show
Ignore:
Timestamp:
04/26/07 16:04:30 (2 years ago)
Author:
sambloomquist
Message:

ScrumBurndownPlugin:

#1248

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • scrumburndownplugin/burndown/burndown.py

    r2199 r2200  
    1414 
    1515from trac.core import * 
     16from trac.config import BoolOption 
    1617from trac.env import IEnvironmentSetupParticipant 
    1718from trac.perm import IPermissionRequestor 
     
    1920from trac.web.main import IRequestHandler 
    2021from trac.util import escape, Markup, format_date 
     22from trac.ticket import ITicketChangeListener 
    2123 
    2224class BurndownComponent(Component): 
     
    3133 
    3234    def environment_needs_upgrade(self, db): 
    33         self.log.debug('burndown plugin - environment needs upgrade') 
    3435        needsUpgrade = False 
    3536         
     
    120121     
    121122    def ticket_created(self, ticket): 
    122         update_burndown_data() 
     123        self.log.debug('burndown plugin - ticket_created') 
     124        self.update_burndown_data() 
    123125         
    124126    def ticket_changed(self, ticket, comment, author, old_values): 
    125         update_burndown_data() 
     127        self.log.debug('burndown plugin - ticket_changed') 
     128        self.update_burndown_data() 
    126129         
    127130    def ticket_deleted(self, ticket): 
    128         update_burndown_data() 
     131        self.log.debug('burndown plugin - ticket_modified') 
     132        self.update_burndown_data() 
    129133 
    130134    #--------------------------------------------------------------------------- 
     
    132136    #--------------------------------------------------------------------------- 
    133137    def get_active_navigation_item(self, req): 
    134         if re.search('/burndown', req.path_info): 
    135             return "burndown" 
    136         else: 
    137             return "" 
     138        return "burndown" 
    138139 
    139140    def get_navigation_items(self, req): 
     
    275276    #  - add up the hours remaining for the open tickets for each open milestone and put the sums into the burndown table 
    276277    #------------------------------------------------------------------------ 
    277     def update_burndown_data(): 
     278    def update_burndown_data(self): 
    278279        is_weekly = BoolOption('burndown', 'is_weekly', False, """Boolean for whether the unit of time for the burndown chart is a week or a day.""") 
     280         
     281        self.log.debug('burndown plugin - is_weekly: %b', is_weekly) 
    279282         
    280283        db = self.env.get_db_cnx() 
  • scrumburndownplugin/deploy.bat

    r2062 r2200  
    1 copy c:\burndown-plugin\dist\TracBurndown-01.07.10-py2.3.egg C:\Python23\Lib\site-packages 
     1copy c:\burndown-plugin\dist\TracBurndown-01.08.10-py2.3.egg C:\Python23\Lib\site-packages