Edgewall Software

Changes between Version 7 and Version 8 of TracDev/ApiChanges/1.1.1


Ignore:
Timestamp:
Oct 8, 2012, 10:43:58 PM (12 years ago)
Author:
Christian Boos
Comment:

OPENTODO

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/ApiChanges/1.1.1

    v7 v8  
    1717== Prerequisites ==
    1818
    19 OPEN //Python 2.5 support has been dropped.
    20 Only Python versions 2.6 and 2.7 are supported.//
    21 A few possible benefits of dropping 2.5 support:
     19Python 2.5 support will be dropped.
     20**Only Python versions 2.6 and 2.7 are supported.**
     21
     22The following language feature introduced in Python 2.6 can now be used:
    2223 - remove `__future__ import with_statement `
    23  - use `format()`, `print()`
     24 - use string [http://docs.python.org/library/string.html#string-formatting format()], `print()`
    2425 - `except Cls as val`
    2526 - class decorators to avoid the `implements` hack?
    2627 - `@prop.setter` / `@prop.deleter`
    2728 - `namedtuple`s!
     29 - there's no longer need of `from __future__ import with_statement`
     30 - `next(iterator, [default])` to clean-up some unit tests
     31 - timeout in smtplib
     32
    2833
    2934=== Modified Dependencies ===
     
    4146==== Babel (optional)
    4247
    43 OPEN //
    44 The internationalization support (i18) for Trac is depending on [http://babel.edgewall.org/ Babel], version 1.0.
    45 //
     48The internationalization support (i18) for Trac is depending on [http://babel.edgewall.org/ Babel], version 1.0. (#10882)
     49
     50//Babel 0.9.6 is still supported.//
    4651
    4752==== Genshi (mandatory)
    4853
    4954OPEN
    50  * // '''Genshi 0.7''' //
    51  * // '''Genshi 0.6.x''' is still supported(?) //
     55// '''Genshi 0.7''' //
     56
     57//Genshi 0.6.x is still supported.//
    5258
    5359
     
    6369== Other Modifications made to the 1.0 API ==
    6470
    65 
    66 OPEN //Take the //will be removed in version 1.1.1// comments in the code seriously. The earlier the planned API changes in 1.1.x, the better (gives more time to plugin authors to adapt).
    67 //
     71Take the //will be removed in version 1.1.1// comments in the code seriously. The earlier the planned API changes in 1.1.x, the better (gives more time to plugin authors to adapt). TODO
    6872
    6973{{{#!comment
     
    7983==== `Environment.get_db_cnx` has been removed #get_db_cnx
    8084
    81 OPEN //
    8285Following the [../0.12#get_db_cnx deprecation] made in 0.12, using `Environment.get_db_cnx` for obtaining a database connection has now been removed.
    83 //
     86TODO
    8487
    8588One should now only use the //context managers// for retrieving a database Connection
     
    103106==== `Environment.db_query()` and `Environment.db_transaction()` ^[source:trunk/trac/env.py@#Lnum (1.0)]^ ==== #with_transaction
    104107
    105 OPEN //
    106 The `@with_transaction(env)` / `@env.with_transaction()` decorators introduced in 0.12 which have been deprecated in Trac 1.0 have been removed as well.
     108//
     109The `@with_transaction(env)` / `@env.with_transaction()` decorators introduced in 0.12 and deprecated in Trac 1.0 are now even more deprecated ;-) They will be removed in 1.3.1.
    107110//
    108111