Changeset 554


Ignore:
Timestamp:
08/12/11 13:42:01 (9 years ago)
Author:
bas
Message:

version 0.11, 0.12 and 0.13 have the same import statements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r553 r554  
    25152515            from trac.core import TracError
    25162516
    2517         elif version == '0.11':
     2517        elif version in ['0.11', '0.12', '0.13']:
    25182518            from trac import attachment
    2519             from trac.env import Environment
    2520             from trac.ticket import Ticket
    2521             from trac.web.href import Href
    25222519            from trac import config as trac_config
    25232520            from trac import util
    25242521            from trac.core import TracError
     2522            from trac.env import Environment
    25252523            from trac.perm import PermissionSystem
    25262524            from trac.perm import PermissionCache
     2525            from trac.test import Mock, MockPerm
     2526            from trac.ticket import Ticket
     2527            from trac.ticket.api import TicketSystem
    25272528            from trac.ticket.web_ui import TicketModule
    2528             from trac.ticket.api import TicketSystem
    2529             from trac.test import Mock, MockPerm
     2529            from trac.web.href import Href
    25302530
    25312531            #
     
    25342534            # see http://projects.edgewall.com/trac/changeset/2799
    25352535            from trac.ticket.notification import TicketNotifyEmail
    2536 
    2537         elif version == '0.12':
    2538             from trac import attachment
    2539             from trac.env import Environment
    2540             from trac.ticket import Ticket
    2541             from trac.web.href import Href
    2542             from trac import config as trac_config
    2543             from trac import util
    2544             from trac.core import TracError
    2545             from trac.perm import PermissionSystem
    2546             from trac.perm import PermissionCache
    2547             from trac.ticket.web_ui import TicketModule
    2548             from trac.ticket.api import TicketSystem
    2549             from trac.test import Mock, MockPerm
    2550 
    2551             #
    2552             # return  util.text.to_unicode(str)
    2553             #
    2554             # see http://projects.edgewall.com/trac/changeset/2799
    2555             from trac.ticket.notification import TicketNotifyEmail
    2556 
    2557         elif version == '0.13':
    2558             from trac import attachment
    2559             from trac.env import Environment
    2560             from trac.ticket import Ticket
    2561             from trac.web.href import Href
    2562             from trac import config as trac_config
    2563             from trac import util
    2564             from trac.core import TracError
    2565             from trac.perm import PermissionSystem
    2566             from trac.perm import PermissionCache
    2567             from trac.ticket.web_ui import TicketModule
    2568             from trac.ticket.api import TicketSystem
    2569             from trac.test import Mock, MockPerm
    2570 
    2571             #
    2572             # return  util.text.to_unicode(str)
    2573             #
    2574             # see http://projects.edgewall.com/trac/changeset/2799
    2575             from trac.ticket.notification import TicketNotifyEmail
    2576 
    25772536
    25782537        else:
Note: See TracChangeset for help on using the changeset viewer.