Changes between Version 7 and Version 8 of TracDev/ApiChanges/1.1.1
- Timestamp:
- Oct 8, 2012, 10:43:58 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/ApiChanges/1.1.1
v7 v8 17 17 == Prerequisites == 18 18 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: 19 Python 2.5 support will be dropped. 20 **Only Python versions 2.6 and 2.7 are supported.** 21 22 The following language feature introduced in Python 2.6 can now be used: 22 23 - remove `__future__ import with_statement ` 23 - use `format()`, `print()`24 - use string [http://docs.python.org/library/string.html#string-formatting format()], `print()` 24 25 - `except Cls as val` 25 26 - class decorators to avoid the `implements` hack? 26 27 - `@prop.setter` / `@prop.deleter` 27 28 - `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 28 33 29 34 === Modified Dependencies === … … 41 46 ==== Babel (optional) 42 47 43 OPEN // 44 The internationalization support (i18) for Trac is depending on [http://babel.edgewall.org/ Babel], version 1.0. 45 // 48 The 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.// 46 51 47 52 ==== Genshi (mandatory) 48 53 49 54 OPEN 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.// 52 58 53 59 … … 63 69 == Other Modifications made to the 1.0 API == 64 70 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 // 71 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). TODO 68 72 69 73 {{{#!comment … … 79 83 ==== `Environment.get_db_cnx` has been removed #get_db_cnx 80 84 81 OPEN //82 85 Following 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 // 86 TODO 84 87 85 88 One should now only use the //context managers// for retrieving a database Connection … … 103 106 ==== `Environment.db_query()` and `Environment.db_transaction()` ^[source:trunk/trac/env.py@#Lnum (1.0)]^ ==== #with_transaction 104 107 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 // 109 The `@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. 107 110 // 108 111