Changeset 1627

Show
Ignore:
Timestamp:
12/04/06 14:54:00 (2 years ago)
Author:
bobbysmith007
Message:

TimingAndEstimationPlugin:

fixed bug where hours added to a ticket when it is created didnt work particularly. It now should

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • timingandestimationplugin/trunk/setup.py

    r1626 r1627  
    88      description='Plugin to make Trac support time estimation and tracking', 
    99      keywords='trac plugin estimation timetracking', 
    10       version='0.2.9', 
     10      version='0.3.0', 
    1111      url='', 
    1212      license='http://www.opensource.org/licenses/mit-license.php', 
  • timingandestimationplugin/trunk/timingandestimationplugin/ticket_daemon.py

    r1578 r1627  
    4848        hours = readTicketValue("hours", float) 
    4949        totalHours = readTicketValue("totalhours", float) 
    50              
     50 
    5151        if not hours == 0: 
    52             self.log.debug("Starting to munge the hours") 
    5352            db = self.env.get_db_cnx() 
    5453            ticket_id = ticket.id 
    5554            cl = ticket.get_changelog() 
    56  
    57             self.log.debug(dir(ticket)) 
    58             self.log.debug(cl) 
     55            #self.log.debug("hours: "+str(hours )); 
     56            #self.log.debug("Dir_ticket:"+str(dir(ticket))) 
     57            #self.log.debug("ticket.values:"+str(ticket.values)) 
     58            #self.log.debug("changelog:"+str(cl)) 
    5959             
    6060            if cl: 
     
    6565                change_time = ticket.time_created 
    6666                author = ticket.values["reporter"] 
     67                save_ticket_change( db, ticket_id, author, change_time, "hours", 0.0, hours) 
    6768                 
    6869            newtotal = str(totalHours+hours) 
     
    7475    def ticket_created(self, ticket): 
    7576        """Called when a ticket is created.""" 
    76         self.log.debug("About to act on the fact that a ticket was created") 
    7777        self.watch_hours(ticket) 
    7878                                
  • timingandestimationplugin/trunk/timingandestimationplugin/ticket_webui.py

    r1554 r1627  
    1313    def __init__(self): 
    1414        pass 
     15     
    1516     # INavigationContributor methods 
    1617    def get_active_navigation_item(self, req): 
     18     
    1719        if re.search('ticket', req.path_info): 
    1820            return "ticket-addon"