Changeset 4505
- Timestamp:
- 10/15/08 15:44:06 (3 months ago)
- Files:
-
- clientsplugin/0.11/clients/action_email.py (modified) (1 diff)
- clientsplugin/0.11/clients/events.py (modified) (3 diffs)
- clientsplugin/0.11/clients/summary_milestone.py (modified) (2 diffs)
- clientsplugin/0.11/clients/summary_ticketchanges.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
clientsplugin/0.11/clients/action_email.py
r4485 r4505 46 46 self.transform = etree.XSLT(etree.fromstring(str(event.action_options['XSLT']['value']))) 47 47 except: 48 print "Error: Cannot load/parse stylesheet"48 self.env.log.error("Error: Cannot load/parse stylesheet") 49 49 return False 50 50 clientsplugin/0.11/clients/events.py
r4502 r4505 237 237 238 238 if not summary.init(self, client): 239 print "Could not init summary"239 self.env.log.info("Could not init summary") 240 240 return False 241 241 if not action.init(self, client): 242 print "Could not init action"242 self.env.log.info("Could not init action") 243 243 return False 244 244 245 print "Performing action"245 self.env.log.debug("Performing action") 246 246 return action.perform(req, summary.get_summary(req, fromdate, todate)) 247 247 … … 272 272 ev = cls(env, event, None, db) 273 273 except: 274 print "Could not run the event %s" % (event,)274 env.log.error("Could not run the event %s" % (event,)) 275 275 return 276 276 #ev.lastrun = 1 … … 280 280 cursor.execute("SELECT name FROM client ORDER BY name") 281 281 for client, in cursor: 282 print "Running event for client: %s" % (client,)282 env.log.info("Running event for client: %s" % (client, )) 283 283 clev = cls(env, event, client) 284 284 clev.trigger(req, client, ev.lastrun, now) clientsplugin/0.11/clients/summary_milestone.py
r4504 r4505 124 124 milestones[milestone]['hours'] += float(estimatedhours) 125 125 126 if self.debug: 127 print " Summarising ticket #%s" % tid 126 self.env.log.debug(" Summarising ticket #%s" % tid) 128 127 ticket = etree.SubElement(xsummary, 'ticket') 129 128 etree.SubElement(ticket, 'id').text = str(tid) … … 146 145 file.write(etree.tostring(xml, pretty_print=True)) 147 146 file.close() 148 print " Wrote XML to /tmp/send-client-email.xml"147 self.env.log.debug(" Wrote XML to /tmp/send-client-email.xml") 149 148 150 149 if not have_data: clientsplugin/0.11/clients/summary_ticketchanges.py
r4451 r4505 127 127 128 128 if self.debug: 129 print " Change notification (%s) for ticket #%s" % (cgfield, tid)129 self.env.log.debug(" Change notification (%s) for ticket #%s" % (cgfield, tid)) 130 130 have_data = True 131 131 if lasttid != tid: … … 153 153 file.write(etree.tostring(xml, pretty_print=True)) 154 154 file.close() 155 print " Wrote XML to /tmp/send-client-email.xml"155 self.env.log.debug(" Wrote XML to /tmp/send-client-email.xml") 156 156 157 157 if not have_data:
