Changeset 78
- Timestamp:
- 05/30/06 08:34:41 (18 years ago)
- Location:
- emailtotracscript/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
emailtotracscript/trunk/debian/changelog
r69 r78 1 email2trac (0.7.0-1) stable; urgency=low 2 3 * Added Ticket merging 4 5 -- root <root@subtrac.sara.nl> Fri, 26 May 2006 15:01:03 +0200 6 1 7 email2trac (0.6.0-1) stable; urgency=low 2 8 -
emailtotracscript/trunk/email2trac.py.in
r77 r78 317 317 318 318 def ticket_update(self, m): 319 319 """ 320 This function checks if this is an update of an existing ticket. 321 If yes it will update the ticket information 322 """ 320 323 if not m['Subject']: 321 324 return False … … 331 334 return False 332 335 336 body_text = self.get_body_text(m) 337 body_text = '{{{\n%s\n}}}' %body_text 338 333 339 # Strip '#' and ':' from ticket_id 334 340 # … … 336 342 ticket_id = int(ticket_id[1:-1]) 337 343 338 tkt = Ticket(self.db, ticket_id)339 340 body_text = self.get_body_text(m)341 body_text = '{{{\n%s\n}}}' %body_text342 343 344 # Get current time 344 345 # … … 346 347 347 348 if self.VERSION == 0.8: 349 tkt = Ticket(self.db, ticket_id) 348 350 tkt.save_changes(self.db, self.author, body_text, when) 349 351 else: 352 tkt = Ticket(self.env, ticket_id, self.db) 350 353 tkt.save_changes(self.author, body_text, when) 351 354 … … 356 359 357 360 return True 358 359 361 360 362 def new(self, msg):
Note: See TracChangeset
for help on using the changeset viewer.