| 1 | = Documenting API changes since 1.0.x = |
| 2 | |
| 3 | {{{#!box info |
| 4 | The next stable version of Trac will be named 1.2, and it will corresponds to the cumulative changes made in the various 1.1.x releases. |
| 5 | |
| 6 | These notes reflect the current (or planned) status for [milestone:1.1.1], in [source:trunk], in particular //paragraphs in italics correspond to proposed changes.// |
| 7 | }}} |
| 8 | |
| 9 | [[PageOutline(2-4,Summary,inline)]] |
| 10 | |
| 11 | |
| 12 | == Prerequisites == |
| 13 | |
| 14 | OPEN //Python 2.5 support has been dropped. |
| 15 | Only Python versions 2.6 and 2.7 are supported.// |
| 16 | |
| 17 | |
| 18 | === Modified Dependencies === |
| 19 | |
| 20 | ==== jQuery and jQuery UI (bundled) |
| 21 | |
| 22 | OPEN //The bundled version of [http://jquery.com jQuery] is now 1.x.y instead of 1.7.2 in Trac 1.0-stable.// |
| 23 | |
| 24 | See jQuery release notes for the corresponding major updates [http://blog.jquery.com/2012/08/09/jquery-1-8-released/ 1.8]. |
| 25 | |
| 26 | The full minified jQuery UI package is now bundled with Trac. |
| 27 | |
| 28 | OPEN // The current version is [http://jqueryui.com/docs/Changelog/1.8.X 1.8.x] |
| 29 | // |
| 30 | |
| 31 | ==== Babel (optional) |
| 32 | |
| 33 | OPEN // |
| 34 | The internationalization support (i18) for Trac is depending on [http://babel.edgewall.org/ Babel], version 1.0. |
| 35 | // |
| 36 | |
| 37 | ==== Genshi (mandatory) |
| 38 | |
| 39 | OPEN |
| 40 | * // '''Genshi 0.7''' // |
| 41 | * // '''Genshi 0.6.x''' is still supported(?) // |
| 42 | |
| 43 | |
| 44 | === New Dependencies === |
| 45 | |
| 46 | None! |
| 47 | |
| 48 | |
| 49 | == Detailed List of Developer Visible Changes #list |
| 50 | |
| 51 | [[TicketQuery(milestone=1.1.1,status=closed,apichanges!=,col=summary,rows=apichanges,group=component,format=table)]] |
| 52 | |
| 53 | == Other Modifications made to the 1.0 API == |
| 54 | {{{#!comment |
| 55 | === Modified Interfaces === |
| 56 | ==== `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 |
| 57 | |
| 58 | ... |
| 59 | }}} |
| 60 | |
| 61 | === Database API Changes === |
| 62 | |
| 63 | ==== `Environment.get_db_cnx` has been removed #get_db_cnx |
| 64 | |
| 65 | OPEN // |
| 66 | Following the deprecation [../0.12#get_db_cnx deprecation] made in 0.12, using `Environment.get_db_cnx` for obtaining a database connection has now been removed. |
| 67 | // |
| 68 | |
| 69 | One should now only use the //context managers// for retrieving a database Connection |
| 70 | in read or write mode. |
| 71 | - a **read-only** Connection can be used to form queries: |
| 72 | {{{#!python |
| 73 | with env.db_query as db: |
| 74 | ... |
| 75 | }}} |
| 76 | a `db` instance obtained the above way should only be used for executing //SELECT// |
| 77 | queries |
| 78 | - a **writable** Connection can be used to modify the database content in a transaction: |
| 79 | {{{#!python |
| 80 | with env.db_transaction as db: |
| 81 | ... |
| 82 | }}} |
| 83 | a `db` instance obtained the above way can be used to execute //INSERT/UPDATE/DELETE// |
| 84 | queries; they will be committed when the last such automatic transaction |
| 85 | in the control flow completes successfully. See DatabaseApi for the full details. |
| 86 | |
| 87 | ==== `Environment.db_query()` and `Environment.db_transaction()` ^[source:trunk/trac/env.py@#Lnum (1.0)]^ ==== #with_transaction |
| 88 | |
| 89 | OPEN // |
| 90 | 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. |
| 91 | // |
| 92 | |
| 93 | |
| 94 | == New in the 1.1.1 API == |
| 95 | |
| 96 | Be sure to have a look at the new ApiDocs ([http://www.edgewall.org/docs/trac-trunk/html/ for latest trunk]). |
| 97 | |
| 98 | //This is a work in progress - coverage is still not yet complete.// |
| 99 | |
| 100 | |
| 101 | |
| 102 | {{{#!comment |
| 103 | === New Classes === |
| 104 | ==== `trac.x.y.ClassName` ^[source:trunk/trac/x/y.py@#Lnum (1.0)]^ ==== #ClassName |
| 105 | |
| 106 | ... |
| 107 | |
| 108 | === New Interfaces === |
| 109 | ==== `trac.x.y.IClassName` ^[source:trunk/trac/x/y.py@#Lnum (1.0)]^ ==== #IClassName |
| 110 | |
| 111 | |
| 112 | === Other news === |
| 113 | |
| 114 | }}} |