Changeset 401


Ignore:
Timestamp:
07/15/10 16:41:21 (14 years ago)
Author:
bas
Message:

remove support for trac 0.9 version

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/changelog

    r400 r401  
    1414    Authors:  kris add tsampa dot org & Bas van der Vlies
    1515
     16  * removed suppport for version 0.9
     17    Author: Bas van der Vlies
     18
    1619 -- Bas van der Vlies <basv@sara.nl>  Thu, 15 Jul 2010 14:17:24 +0200
    1720
  • trunk/email2trac.py.in

    r398 r401  
    919919                body_text = self.body_text(message_parts)
    920920
    921                 if self.VERSION  == 0.9:
    922                         error_with_attachments = self.attach_attachments(message_parts, True)
    923                 else:
    924                         error_with_attachments = self.attach_attachments(message_parts)
     921                error_with_attachments = self.attach_attachments(message_parts)
    925922
    926923                if body_text.strip() or update_fields or self.properties:
     
    14501447                # Attach attachments.
    14511448                self.id = topic['id']
    1452                 self.attach_attachments(context.content_parts, self.VERSION == 0.9)
     1449                self.attach_attachments(context.content_parts, True)
    14531450
    14541451                # Notify change listeners.
     
    14761473                # Attach attachments.
    14771474                self.id = message['topic']
    1478                 self.attach_attachments(context.content_parts, self.VERSION == 0.9)
     1475                self.attach_attachments(context.content_parts, True)
    14791476
    14801477                # Notify change listeners.
     
    21732170
    21742171        try:
    2175                 if version == '0.9':
    2176                         from trac import attachment
    2177                         from trac.env import Environment
    2178                         from trac.ticket import Ticket
    2179                         from trac.web.href import Href
    2180                         from trac import util
    2181                         from trac.Notify import TicketNotifyEmail
    2182                 elif version == '0.10':
     2172                if version == '0.10':
    21832173                        from trac import attachment
    21842174                        from trac.env import Environment
Note: See TracChangeset for help on using the changeset viewer.