Changeset 1627
- Timestamp:
- 12/04/06 14:54:00 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
timingandestimationplugin/trunk/setup.py
r1626 r1627 8 8 description='Plugin to make Trac support time estimation and tracking', 9 9 keywords='trac plugin estimation timetracking', 10 version='0. 2.9',10 version='0.3.0', 11 11 url='', 12 12 license='http://www.opensource.org/licenses/mit-license.php', timingandestimationplugin/trunk/timingandestimationplugin/ticket_daemon.py
r1578 r1627 48 48 hours = readTicketValue("hours", float) 49 49 totalHours = readTicketValue("totalhours", float) 50 50 51 51 if not hours == 0: 52 self.log.debug("Starting to munge the hours")53 52 db = self.env.get_db_cnx() 54 53 ticket_id = ticket.id 55 54 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)) 59 59 60 60 if cl: … … 65 65 change_time = ticket.time_created 66 66 author = ticket.values["reporter"] 67 save_ticket_change( db, ticket_id, author, change_time, "hours", 0.0, hours) 67 68 68 69 newtotal = str(totalHours+hours) … … 74 75 def ticket_created(self, ticket): 75 76 """Called when a ticket is created.""" 76 self.log.debug("About to act on the fact that a ticket was created")77 77 self.watch_hours(ticket) 78 78 timingandestimationplugin/trunk/timingandestimationplugin/ticket_webui.py
r1554 r1627 13 13 def __init__(self): 14 14 pass 15 15 16 # INavigationContributor methods 16 17 def get_active_navigation_item(self, req): 18 17 19 if re.search('ticket', req.path_info): 18 20 return "ticket-addon"
