Changes between Version 14 and Version 15 of TracDev/ApiChanges/1.0
- Timestamp:
- Jun 19, 2012, 10:19:10 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/ApiChanges/1.0
v14 v15 1 = !TracDev/ApiChanges/ 0.13=1 = !TracDev/ApiChanges/1.0 = 2 2 3 3 {{{ 4 4 #!div style="margin-top: .5em; padding: 0 1em; background-color: #ffd; border:1px outset #ddc; text-align: center; clear: right" 5 5 6 [milestone: 0.13] corresponds to the developmentversion of Trac (a.k.a. [source:trunk]) \\7 These notes reflect the current status .6 [milestone:1.0] corresponds to the next stable version of Trac (a.k.a. [source:trunk]) \\ 7 These notes reflect the current status, which is rapidly (heh) approaching beta. 8 8 }}} 9 9 … … 26 26 ==== Babel (optional) 27 27 28 The internationalization support (i18) for Trac is depending on [http://babel.edgewall.org/ Babel] .28 The internationalization support (i18) for Trac is depending on [http://babel.edgewall.org/ Babel], preferably version 0.9.6. 29 29 30 Q: Should we now make Babel a mandatory dependency, as we have a good stable release? 30 //Q: Should we now make Babel a mandatory dependency, as we have a good stable release? 31 \\This would allow us to use the Babel API in more places (e.g. #4636, #2182). 32 // 31 33 32 This would allow us to use the Babel API in more places (e.g. #4636, #2182). 33 34 A: (cboos) I think having it optional doesn't prevent us to make further use of it when it's available. We just need to use fallback code when it's not (see #2182). 34 //A: (cboos) I think having it optional doesn't prevent us to make further use of it when it's available. We just need to use fallback code when it's not (see #2182). 35 // 35 36 36 37 ==== Clearsilver (dropped) … … 53 54 == Detailed List of Developer Visible Changes 54 55 55 [[TicketQuery(milestone= 0.13|0.12.1|0.12.2,status=closed,apichanges!=,col=apichanges,group=component,format=table)]]56 [[TicketQuery(milestone=1.0|0.12.1|0.12.2|0.12.3|0.12.4,status=closed,apichanges!=,col=apichanges,group=component,format=table)]] 56 57 57 58 == Other Modifications made to the 0.12 API == 58 59 {{{#!comment 59 60 === Modified Interfaces === 60 ==== `I...` ^[source:trunk/trac/.../api.py@rev:highlighted-linenum#Lnum ( 0.13)] [source:branches/0.12-stable/trac/.../api.py@rev:rev:highlighted-linenum#Lnum (0.12)]^ ==== #I...r61 ==== `I...` ^[source:trunk/trac/.../api.py@rev:highlighted-linenum#Lnum (1.0)] [source:branches/0.12-stable/trac/.../api.py@rev:rev:highlighted-linenum#Lnum (0.12)]^ ==== #I...r 61 62 62 63 ... … … 67 68 ==== `Environment.get_db_cnx` is obsolete #get_db_cnx 68 69 69 Following the deprecation [../0.12#get_db_cnx deprecation] made in 0.12, using `Environment.get_db_cnx` for obtaining a database connection is now considered ''obsolete'' and its use is heavily discouraged, as that method will be removed in Trac 0.14.70 Following the deprecation [../0.12#get_db_cnx deprecation] made in 0.12, using `Environment.get_db_cnx` for obtaining a database connection is now considered ''obsolete'' and its use is heavily discouraged, as that method will be removed in Trac 1.1. 70 71 71 72 One should now only use the //context managers// for retrieving a database Connection … … 87 88 in the control flow completes successfully. See DatabaseApi for the full details. 88 89 89 ==== `Environment.db_query()` and `Environment.db_transaction()` ^[source:trunk/trac/env.py@#Lnum ( 0.13)]^ ==== #with_transaction90 ==== `Environment.db_query()` and `Environment.db_transaction()` ^[source:trunk/trac/env.py@#Lnum (1.0)]^ ==== #with_transaction 90 91 91 The `@with_transaction(env)` / `@env.with_transaction()` decorators introduced in 0.12 remain available, but they're now deprecated as well, as the `with` syntax is the one to be used. Those decorators will likely be removed in Trac 0.14as well.92 The `@with_transaction(env)` / `@env.with_transaction()` decorators introduced in 0.12 remain available, but they're now deprecated as well, as the `with` syntax is the one to be used. Those decorators will likely be removed in Trac 1.1 as well. 92 93 93 94 See #8751 for details and related notes about [#get_db_cnx get_db_cnx] deprecation above. 94 95 95 96 96 == New in the 0.13API ==97 == New in the 1.0 API == 97 98 98 99 Be sure to have a look at the new ApiDocs ([http://www.edgewall.org/docs/trac-trunk/html/ for latest trunk]). … … 102 103 {{{#!comment 103 104 === New Classes === 104 ==== `trac.x.y.ClassName` ^[source:trunk/trac/x/y.py@#Lnum ( 0.13)]^ ==== #ClassName105 ==== `trac.x.y.ClassName` ^[source:trunk/trac/x/y.py@#Lnum (1.0)]^ ==== #ClassName 105 106 106 107 ... 107 108 108 109 === New Interfaces === 109 ==== `trac.x.y.IClassName` ^[source:trunk/trac/x/y.py@#Lnum ( 0.13)]^ ==== #IClassName110 ==== `trac.x.y.IClassName` ^[source:trunk/trac/x/y.py@#Lnum (1.0)]^ ==== #IClassName 110 111 111 112