Ignore:
Timestamp:
05/30/06 08:34:41 (18 years ago)
Author:
bas
Message:

EmailtoTracScript?:

email2trac.py.in:

  • Changed the ticket_update function to 0.9 and higher Ticket fetching has changed

debian/changelog:

  • Updated version info

This line, and those below, will be ignored--

M email2trac.py.in
M debian/changelog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emailtotracscript/trunk/email2trac.py.in

    r77 r78  
    317317
    318318        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                """
    320323                if not m['Subject']:
    321324                        return False
     
    331334                        return False
    332335
     336                body_text = self.get_body_text(m)
     337                body_text = '{{{\n%s\n}}}' %body_text
     338
    333339                # Strip '#' and ':' from ticket_id
    334340                #
     
    336342                ticket_id = int(ticket_id[1:-1])
    337343
    338                 tkt = Ticket(self.db, ticket_id)
    339 
    340                 body_text = self.get_body_text(m)
    341                 body_text = '{{{\n%s\n}}}' %body_text
    342 
    343344                # Get current time
    344345                #
     
    346347
    347348                if self.VERSION  == 0.8:
     349                        tkt = Ticket(self.db, ticket_id)
    348350                        tkt.save_changes(self.db, self.author, body_text, when)
    349351                else:
     352                        tkt = Ticket(self.env, ticket_id, self.db)
    350353                        tkt.save_changes(self.author, body_text, when)
    351354
     
    356359
    357360                return True
    358 
    359361
    360362        def new(self, msg):
Note: See TracChangeset for help on using the changeset viewer.