Changeset 618


Ignore:
Timestamp:
10/03/12 13:44:45 (9 years ago)
Author:
bas
Message:

API changes use self.env.get_read_db instead of self.env.get_db_cnx().

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r615 r618  
     12.X.X
     2  * use self.env.get_read_db for trac version > 0.11. self.env.get_db_cnx is obsolete. TRAC
     3    api documentation.
     4    Fixed by: Bas van der Vlies
     5
    162.6.2
    27  * Removed '--Orignal message---' from strip_signature_regex. It is not a
  • trunk/email2trac.py.in

    r615 r618  
    17341734            self.save_email_for_debug(m, self.parameters.project_name, True)
    17351735
    1736         self.db = self.env.get_db_cnx()
     1736        if self.VERSION <= 0.11:
     1737            self.db = self.env.get_db_cnx()
     1738        else:
     1739            self.db = self.env.get_read_db()
     1740
    17371741        self.get_sender_info(m)
    17381742
Note: See TracChangeset for help on using the changeset viewer.