Changeset 1888 for tracfrenchtranslation
- Timestamp:
- 01/21/07 12:30:37 (2 years ago)
- Files:
-
- tracfrenchtranslation/0.10/ChangeLog (modified) (1 diff)
- tracfrenchtranslation/0.10/contrib/htdigest.py (added)
- tracfrenchtranslation/0.10/htdocs/css/browser.css (modified) (1 diff)
- tracfrenchtranslation/0.10/htdocs/css/diff.css (modified) (5 diffs)
- tracfrenchtranslation/0.10/htdocs/edgewall.png (deleted)
- tracfrenchtranslation/0.10/htdocs/filedeny.png (deleted)
- tracfrenchtranslation/0.10/htdocs/folderdeny.png (deleted)
- tracfrenchtranslation/0.10/htdocs/js/trac.js (modified) (1 diff)
- tracfrenchtranslation/0.10/htdocs/python.png (added)
- tracfrenchtranslation/0.10/RELEASE (modified) (2 diffs)
- tracfrenchtranslation/0.10/scripts/trac-admin (modified) (1 diff)
- tracfrenchtranslation/0.10/templates/about.cs (modified) (1 diff)
- tracfrenchtranslation/0.10/templates/log_rss.cs (modified) (2 diffs)
- tracfrenchtranslation/0.10/templates/query_rss.cs (modified) (1 diff)
- tracfrenchtranslation/0.10/templates/report_rss.cs (modified) (2 diffs)
- tracfrenchtranslation/0.10/templates/ticket_rss.cs (modified) (3 diffs)
- tracfrenchtranslation/0.10/templates/timeline_rss.cs (modified) (1 diff)
- tracfrenchtranslation/0.10/templates/wiki.cs (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/attachment.py (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/config.py (modified) (4 diffs)
- tracfrenchtranslation/0.10/trac/db/api.py (modified) (3 diffs)
- tracfrenchtranslation/0.10/trac/db_default.py (modified) (11 diffs)
- tracfrenchtranslation/0.10/trac/db/mysql_backend.py (modified) (3 diffs)
- tracfrenchtranslation/0.10/trac/db/pool.py (modified) (6 diffs)
- tracfrenchtranslation/0.10/trac/db/postgres_backend.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/db/sqlite_backend.py (modified) (4 diffs)
- tracfrenchtranslation/0.10/trac/db/util.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/env.py (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/__init__.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/mimeview/api.py (modified) (3 diffs)
- tracfrenchtranslation/0.10/trac/mimeview/enscript.py (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/mimeview/php.py (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/mimeview/silvercity.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/mimeview/tests/api.py (modified) (3 diffs)
- tracfrenchtranslation/0.10/trac/notification.py (modified) (3 diffs)
- tracfrenchtranslation/0.10/trac/perm.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/scripts/admin.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/scripts/tests/admin.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/scripts/tests/admin-tests.txt (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/test.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/ticket/api.py (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/ticket/model.py (modified) (4 diffs)
- tracfrenchtranslation/0.10/trac/ticket/notification.py (modified) (5 diffs)
- tracfrenchtranslation/0.10/trac/ticket/report.py (modified) (5 diffs)
- tracfrenchtranslation/0.10/trac/ticket/roadmap.py (modified) (9 diffs)
- tracfrenchtranslation/0.10/trac/ticket/tests/api.py (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/ticket/tests/__init__.py (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/ticket/tests/notification.py (modified) (16 diffs)
- tracfrenchtranslation/0.10/trac/ticket/web_ui.py (modified) (5 diffs)
- tracfrenchtranslation/0.10/trac/Timeline.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/util/html.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/util/__init__.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/versioncontrol/api.py (modified) (6 diffs)
- tracfrenchtranslation/0.10/trac/versioncontrol/cache.py (modified) (4 diffs)
- tracfrenchtranslation/0.10/trac/versioncontrol/diff.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/versioncontrol/svn_authz.py (modified) (4 diffs)
- tracfrenchtranslation/0.10/trac/versioncontrol/svn_fs.py (modified) (6 diffs)
- tracfrenchtranslation/0.10/trac/versioncontrol/tests/cache.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/versioncontrol/tests/diff.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/versioncontrol/web_ui/changeset.py (modified) (12 diffs)
- tracfrenchtranslation/0.10/trac/versioncontrol/web_ui/tests/wikisyntax.py (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/web/api.py (modified) (3 diffs)
- tracfrenchtranslation/0.10/trac/web/auth.py (modified) (9 diffs)
- tracfrenchtranslation/0.10/trac/web/clearsilver.py (modified) (4 diffs)
- tracfrenchtranslation/0.10/trac/web/main.py (modified) (9 diffs)
- tracfrenchtranslation/0.10/trac/web/modpython_frontend.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/web/session.py (modified) (3 diffs)
- tracfrenchtranslation/0.10/trac/web/standalone.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/web/tests/auth.py (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/wiki/api.py (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/wiki/formatter.py (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/wiki/__init__.py (modified) (1 diff)
- tracfrenchtranslation/0.10/trac/wiki/intertrac.py (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/wiki/macros.py (modified) (4 diffs)
- tracfrenchtranslation/0.10/trac/wiki/tests/wikisyntax.py (modified) (4 diffs)
- tracfrenchtranslation/0.10/trac/wiki/tests/wiki-tests.txt (modified) (2 diffs)
- tracfrenchtranslation/0.10/trac/wiki/web_ui.py (modified) (5 diffs)
- tracfrenchtranslation/0.10/wiki-default/TracIni (modified) (3 diffs)
- tracfrenchtranslation/0.10/wiki-default/WikiStart (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tracfrenchtranslation/0.10/ChangeLog
r1435 r1888 1 Trac 0.10.3 (Dec 12, 2006) 2 http://svn.edgewall.org/repos/trac/tags/trac-0.10.3 3 4 Trac 0.10.3 is a bug fix release. The following list contains only a 5 few highlights: 6 7 * Timeline fail to load with a "NoSuchChangeset" error message (#4132). 8 * Timed out MySQL connections not handled properly (#3645). 9 * Subversion repository resync broken. (#4204). 10 11 The complete list of closed tickets can be found here: 12 http://trac.edgewall.org/query?status=closed&milestone=0.10.2 13 14 Trac 0.10.3rc1 (Dec 7, 2006) 15 http://svn.edgewall.org/repos/trac/tags/trac-0.10.3rc1 16 17 Trac 0.10.3 is a bug fix release. The following list contains only a 18 few highlights: 19 20 * Timeline fail to load with a "NoSuchChangeset" error message (#4132). 21 * Timed out MySQL connections not handled properly (#3645). 22 * Subversion repository resync broken. (#4204). 23 24 The complete list of closed tickets can be found here: 25 http://trac.edgewall.org/query?status=closed&milestone=0.10.2 26 27 Trac 0.10.2 (Nov 13, 2006) 28 http://svn.edgewall.org/repos/trac/tags/trac-0.10.2 29 30 Trac 0.10.2 is a bug fix release. The following list contains only a 31 few highlights: 32 33 * Fixes deadlock when using authz_file config option (#3996). 34 * Makes the CSRF code play nice with the XmlRpcPlugin (#4122). 35 * Fixes Timeline breakage after svn commit when using sqlite (#4120). 36 37 The complete list of closed tickets can be found here: 38 http://trac.edgewall.org/query?status=closed&milestone=0.10.2 39 40 Trac 0.10.1 (Nov 8, 2006) 41 http://svn.edgewall.org/repos/trac/tags/trac-0.10.1 42 43 Trac 0.10.1 contains a security fix and a number of bug fixes. 44 The following list contains only a few highlights: 45 46 * Fixed CSRF vulnerability (#4049), reported by Daniel Kahn Gillmor. 47 * Improved DB connection handling (#3503) 48 * Tracd no longer tries to resolve client's IP address (#3481). 49 50 The complete list of closed tickets can be found here: 51 http://trac.edgewall.org/query?status=closed&milestone=0.10.1 52 1 53 Trac 0.10 'Zengia' (Sep 28, 2006) 2 54 http://svn.edgewall.org/repos/trac/tags/trac-0.10 tracfrenchtranslation/0.10/htdocs/css/browser.css
r1428 r1888 119 119 padding: 0; 120 120 } 121 #info .props li { padding: 0 }121 #info .props li { padding: 0; overflow: auto; } 122 122 123 123 /* Styles for the HTML preview */ tracfrenchtranslation/0.10/htdocs/css/diff.css
r1428 r1888 53 53 /* Styles for the list of diffs */ 54 54 .diff ul.entries { clear: both; margin: 0; padding: 0 } 55 .diff ul.entries ul.props li { overflow: auto; } 55 56 .diff li.entry { 56 57 background: #f7f7f7; … … 108 109 background: #fff; 109 110 font: normal 11px monospace; 110 overflow: hidden;111 overflow: visible; 111 112 padding: 1px 2px; 112 113 vertical-align: top; … … 116 117 border: 1px solid #d7d7d7; 117 118 } 118 .diff table td del, .diff table td ins { text-decoration: none } 119 .diff table td del { color: #600 } 120 .diff table td ins { color: #060 } 119 .diff td ins, .diff td del {text-decoration: none;} 121 120 122 121 /* Styles for the inline diff */ … … 141 140 .diff table.inline tbody.mod tr.last td.r, 142 141 .diff table.inline tbody.add tr.last td.r { border-bottom-width: 1px } 143 .diff table.inline tbody.mod td del { background: #e99; color: #000 } 144 .diff table.inline tbody.mod td ins { background: #9e9; color: #000 } 142 .diff table.inline tbody.mod td del { 143 background: #e99; 144 color: #000; 145 white-space: pre; 146 } 147 .diff table.inline tbody.mod td ins { 148 background: #9e9; 149 color: #000; 150 white-space: pre; 151 } 145 152 146 153 /* Styles for the side-by-side diff */ … … 153 160 .diff table.sidebyside tbody.rem td.r { background: #faa } 154 161 .diff table.sidebyside tbody.mod del, .diff table.sidebyside tbody.mod ins { 155 background: #fc0; 162 background: #fc0; 156 163 } tracfrenchtranslation/0.10/htdocs/js/trac.js
r1428 r1888 42 42 if (param.length < 2) continue; 43 43 if (param[0] == 'q' || param[0] == 'p') { // q= for Google, p= for Yahoo 44 var query = unescape(param[1].replace(/\+/g, ' '));44 var query = decodeURIComponent(param[1].replace(/\+/g, ' ')); 45 45 if (query[0] == '!') query = query.slice(1); 46 46 words = query.split(/(".*?")|('.*?')|(\s+)/); tracfrenchtranslation/0.10/RELEASE
r1435 r1888 1 Release Notes for Trac 0.10 'Zengia'2 ============================= =======3 September 28, 20061 Release Notes for Trac 0.10.3 2 ============================= 3 December 12, 2006 4 4 5 We're happy to announce the Trac 0.10 rc1release, available from:5 We're happy to announce the Trac 0.10.3 release, available from: 6 6 7 7 http://trac.edgewall.org/wiki/TracDownload … … 12 12 http://trac.edgewall.org/wiki/MailingList 13 13 14 User visible changes 15 ==================== 14 Trac 0.10.3 is a bug fix release and fixes a few bugs introduced in the 15 0.10.1 and 0.10.2 releases. A brief summary of major changes: 16 16 17 Advanced diff support 18 --------------------- 19 The TracRevisionLog view can now be used to select two arbitrary 20 revisions of a given path in the repository and see the differences 21 between them, in the familiar TracChangeset view. 17 * Timeline fail to load with a "NoSuchChangeset" error message (#4132). 18 * Timed out MySQL connections not handled properly (#3645). 19 * Subversion repository resync broken. (#4204). 22 20 23 A related change is the possibility to navigate through a sequence of 24 restricted changesets. A restricted changeset is the subset of changes 25 within a changeset inside a given directory. One can easily start 26 navigating such a sequence by following the new Last Change navigation 27 link present for the currently browsed path. 21 The complete list of closed tickets can be found here: 28 22 29 It's now also possible to compare two arbitrary paths at any revision. 30 This can be used to check the differences between a tagged version and 31 trunk, or to review the set of differences between two branches. 23 http://trac.edgewall.org/query?status=closed&milestone=0.10.3 32 24 33 Other enhancements have been made to the version control subsystem, in34 particular the support of scoped repositories has been improved. You35 should therefore perform a trac-admin resync operation.36 37 InterWiki and InterTrac support38 -------------------------------39 An InterWiki link can be used to refer to a Wiki page located on another40 Wiki system, and by extension, to any object located on any other Web41 site, as long as simple URL mapping is possible.42 43 An InterTrac link can be used for referring to a Trac resource (Wiki44 page, changeset, ticket, ...) on an other Trac environment. This makes it45 easier to work with multiple separate projects, and seamlessly refer to46 resources from one Trac to another.47 48 Improved modularity49 -------------------50 Trac now supports database and version control backends as third-party51 plugins.52 53 It is now easier to add support for new database backends. In addition to54 the already existing support for SQLite and PostgreSQL, Trac now features55 experimental support for the MySQL database.56 57 As for the version control systems, Trac still features best of breed58 Subversion support, but the Subversion bindings and libraries are no59 longer mandatory for using Trac itself. Other version control systems can60 be supported by external plugins.61 62 Improved notification system63 ----------------------------64 The encoding for emails sent out by Trac can now be configured. This may65 decrease email size and can avoid useless encoding for western languages66 that make some touchy SMTP servers bounce the notifications.67 68 Support for local network installations using local email addresses69 (addresses without a domain name) and a configurable default domain name70 has been added, as well as support for both visible and blind carbon71 copies.72 73 Support for spam protection74 ---------------------------75 Trac now provides extension point that allow plugins to intercept content76 submissions, which can be used to filter out spam. One plugin that does77 this is the SpamFilter plugin, which is available as a separate package:78 79 http://trac.edgewall.org/wiki/SpamFilter80 81 This plugin implements a number of different strategies for testing82 content, such as regular expression matching, IP blacklisting, and83 Akismet queries.84 85 WSGI used as web server protocol86 --------------------------------87 Trac now uses WSGI (the "Python Web Server Gateway Interface")88 internally. While Trac continues to provide builtin support for CGI,89 FastCGI and mod_python, as well as the standalone server "tracd", you can90 now take advantage of the WSGI support to use Trac in other setups, such91 as Twisted, Paste, SCGI, or ISAPI.92 93 Lots of minor improvements94 --------------------------95 To the Wiki syntax96 97 Numerous improvements have been made in the WikiFormatting syntax:98 99 * Headings can optionally be given explicit id.100 * MoinMoin ["internal free link"] syntax is now supported.101 * Introduced citation syntax for the Wiki (e-mail style).102 * Added more robust parsing and formatting of Wiki lists and robust103 coupling of lists and quotes.104 * Improved the way external links are displayed.105 * Lots of new ways to refer to specific repository views (diff:from//106 to, log:, [x:y], rx:y)107 * htdocs:, useful for referring to local resources in TracStandalone108 * MoinMoin-style syntax for description lists109 * Removed support for direct embedding of images using links: use the110 [[Image]] macro instead.111 112 To the Wiki subsystem113 114 * Quicker access to last change on a page and better navigation in the115 page history116 * Preview the change comment before saving a change and display the117 change comment when viewing a specific version of a page. This118 hopefully will encourage authors to document their changes!119 120 To the Ticket subsystem121 122 * Possibility to Reply to ticket description and changes123 * Export individual ticket data in CSV or RSS format124 125 Developer-visible changes126 =========================127 128 unicode everywhere129 ------------------130 Trac used to handle text content by using str objects, in which Unicode131 characters were represented using UTF-8 encoding. This lead to various132 problems with most non-western languages. We now use the dedicated133 unicode datatype to consistently handle text written in any language. See134 also TracDev/UnicodeGuidelines.135 136 Better way to programmatically generate HTML fragments137 ------------------------------------------------------138 Trac now provides utility code to programmatically generate HTML139 snippets. This can be used in the various places where Trac expects140 plugins to return small fragments of HTML bypassing the template system.141 These utilities can be found in the trac.util.html module.142 143 Unit test framework for email notifications144 -------------------------------------------145 Email notifications can now be validated; unit tests include a private146 SMTP server and helper methods to extract and decode email data.147 148 Internal API changes149 --------------------150 A detailed view of the API changes since 0.9.x can be found in TracDev/151 ApiChanges/0.10.152 25 153 26 Acknowledgements tracfrenchtranslation/0.10/scripts/trac-admin
r1428 r1888 1 1 #!/usr/bin/env python 2 2 # -*- coding: iso8859-1 -*- 3 __author__ = 'Daniel Lundin <daniel@edgewall.com>, Jonas Borgstr öm <jonas@edgewall.com>'3 __author__ = 'Daniel Lundin <daniel@edgewall.com>, Jonas Borgström <jonas@edgewall.com>' 4 4 __copyright__ = 'Copyright (c) 2005 Edgewall Software' 5 5 __license__ = """ 6 6 Copyright (C) 2003, 2004, 2005 Edgewall Software 7 Copyright (C) 2003, 2004 Jonas Borgstr öm <jonas@edgewall.com>7 Copyright (C) 2003, 2004 Jonas Borgström <jonas@edgewall.com> 8 8 Copyright (C) 2003, 2004 Daniel Lundin <daniel@edgewall.com> 9 9 All rights reserved. tracfrenchtranslation/0.10/templates/about.cs
r1429 r1888 21 21 each:section = about.config ?><?cs 22 22 if:len(section.options) ?> 23 <tr><th rowspan="<?cs var:len(section.options) ?>"><?cs var:section.name ?></th><?cs23 <tr><th class="section" rowspan="<?cs var:len(section.options) ?>"><?cs var:section.name ?></th><?cs 24 24 each:option = section.options ?><?cs if:name(option) != 0 ?><tr><?cs /if ?> 25 <td ><?cs var:option.name ?></td>26 <td ><?cs var:option.value ?></td>25 <td class="name"><?cs var:option.name ?></td> 26 <td class="<?cs var:option.valueclass ?>"><?cs var:option.value ?></td> 27 27 </tr><?cs 28 28 /each ?><?cs tracfrenchtranslation/0.10/templates/log_rss.cs
r1429 r1888 12 12 <language>fr-fr</language> 13 13 <generator>Trac v<?cs var:trac.version ?></generator><?cs 14 if:chrome.logo.src ?> 15 <image> 16 <title><?cs var:project.name_encoded ?></title> 17 <url><?cs if:!chrome.logo.src_abs ?><?cs var:base_host ?><?cs /if ?><?cs 18 var:chrome.logo.src ?></url> 19 <link><?cs var:base_host ?><?cs var:log.log_href ?></link> 20 </image><?cs 21 /if ?><?cs 14 22 each:item = log.items ?><?cs 15 23 with:change = log.changes[item.rev] ?> … … 20 28 <title>Révision <?cs var:item.rev ?>: <?cs var:change.shortlog ?></title> 21 29 <link><?cs var:base_host ?><?cs var:item.restricted_href ?></link> 30 <guid isPermaLink="false"><?cs var:base_host ?><?cs 31 var:item.restricted_href ?></guid> 22 32 <description><?cs var:change.message ?></description> 23 33 <category>Historique</category> tracfrenchtranslation/0.10/templates/query_rss.cs
r1429 r1888 12 12 /if ?> 13 13 <language>en-us</language> 14 <generator>Trac v<?cs var:trac.version ?></generator><?cs 15 if:chrome.logo.src ?> 14 16 <image> 15 17 <title><?cs var:project.name_encoded ?></title> 16 <url><?cs 17 if:!header_logo.src_abs ?><?cs var:base_host ?><?cs 18 /if ?><?cs 19 var:header_logo.src ?></url> 20 <link><?cs var:base_host ?><?cs var:trac.href.timeline ?></link><?cs 21 if:header_logo.width ?> 22 <width><?cs var:header_logo.width ?></width><?cs 23 /if ?><?cs 24 if:header_logo.height ?> 25 <height><?cs var:header_logo.height ?></height><?cs 26 /if ?> 27 </image> 28 <generator>Trac v<?cs var:trac.version ?></generator><?cs 18 <url><?cs if:!chrome.logo.src_abs ?><?cs var:base_host ?><?cs /if ?><?cs 19 var:chrome.logo.src ?></url> 20 <link><?cs var:query.href ?></link> 21 </image><?cs 22 /if ?><?cs 29 23 each:result = query.results ?> 30 24 <item> 31 25 <link><?cs var:result.href ?></link> 32 <guid isPermaLink=" true"><?cs var:result.href ?></guid>26 <guid isPermaLink="false"><?cs var:result.href ?></guid> 33 27 <title><?cs var:'#' + result.id + ': ' + result.summary ?></title><?cs 34 28 if:result.created ?> tracfrenchtranslation/0.10/templates/report_rss.cs
r1429 r1888 7 7 <title><?cs var:title ?></title><?cs 8 8 /if ?> 9 <link><?cs var:base_host ?><?cs var:trac.href.report ?>/<?cs var:report.id ?></link> 9 <link><?cs var:base_host ?><?cs 10 var:trac.href.report ?>/<?cs var:report.id ?></link> 10 11 <description>Rapport Trac - <?cs var:report.title ?></description> 11 12 <language>fr-fr</language> 12 13 <generator>Trac v<?cs var:trac.version ?></generator><?cs 14 if:chrome.logo.src ?> 15 <image> 16 <title><?cs var:project.name_encoded ?></title> 17 <url><?cs if:!chrome.logo.src_abs ?><?cs var:base_host ?><?cs /if ?><?cs 18 var:chrome.logo.src ?></url> 19 <link><?cs var:base_host ?><?cs 20 var:trac.href.report ?>/<?cs var:report.id ?></link> 21 </image><?cs 22 /if ?><?cs 13 23 each:row = report.items ?><?cs 14 24 set title = '' ?><?cs … … 36 46 <title><?cs var:'#' + id + ': ' + title ?></title> 37 47 <link><?cs var:link ?></link> 48 <guid isPermaLink="false"><?cs var:link ?></guid> 38 49 <description><?cs var:descr ?></description> 39 <category>R eport</category>50 <category>Rapport</category> 40 51 </item><?cs 41 52 /each ?></channel> tracfrenchtranslation/0.10/templates/ticket_rss.cs
r1429 r1888 10 10 <link><?cs var:base_host ?><?cs var:ticket.href ?></link> 11 11 <description><?cs var:ticket.description.formatted ?></description> 12 <language> en-us</language>12 <language>fr-fr</language> 13 13 <generator>Trac v<?cs var:trac.version ?></generator><?cs 14 if:chrome.logo.src ?> 15 <image> 16 <title><?cs var:project.name_encoded ?></title> 17 <url><?cs if:!chrome.logo.src_abs ?><?cs var:base_host ?><?cs /if ?><?cs 18 var:chrome.logo.src ?></url> 19 <link><?cs var:base_host ?><?cs var:ticket.href ?></link> 20 </image><?cs 21 /if ?><?cs 14 22 each:change = ticket.changes ?> 15 23 <item><?cs … … 21 29 if:change.cnum ?>#comment:<?cs var:change.cnum ?><?cs 22 30 /if ?></link> 31 <guid isPermaLink="false"><?cs var:base_host ?><?cs var:ticket.href ?><?cs 32 if:change.cnum ?>#comment:<?cs var:change.cnum ?><?cs 33 /if ?></guid> 23 34 <description> 24 35 <?cs if:len(change.fields) ?> … … 26 37 each:field = change.fields ?> 27 38 <li><strong><?cs name:field ?></strong> <?cs 28 if:!field.old ?> set to <em><?cs39 if:!field.old ?>d�ni �lt;em><?cs 29 40 var:field.new ?></em><?cs 30 elif:field.new ?> changed from<em><?cs var:field.old31 ?></em> to <em><?cs41 elif:field.new ?>modifi�e <em><?cs var:field.old 42 ?></em> �lt;em><?cs 32 43 var:field.new ?></em>.<?cs 33 else ?> deleted<?cs44 else ?>supprim�cs 34 45 /if ?></li><?cs 35 46 /each ?> tracfrenchtranslation/0.10/templates/timeline_rss.cs
r1429 r1888 27 27 <pubDate><?cs var:event.date ?></pubDate> 28 28 <link><?cs var:event.href ?></link> 29 <guid isPermaLink="false"><?cs var:event.href ?>/<?cs 30 var:event.dateuid ?></guid> 29 31 <description><?cs var:event.message ?></description> 30 32 </item><?cs tracfrenchtranslation/0.10/templates/wiki.cs
r1429 r1888 170 170 <thead><tr> 171 171 <th title="Version <?cs var:wiki.old_version ?>">v<?cs 172 var:wiki.old_version?></th>172 alt:wiki.old_version ?>0<?cs /alt ?></th> 173 173 <th title="Version <?cs var:wiki.version ?>">v<?cs 174 174 var:wiki.version ?></th> … … 309 309 <?cs if trac.acl.WIKI_ADMIN ?> 310 310 <div class="options"> 311 <label><input type="checkbox" name="readonly" id="readonly" <?cs311 <label><input type="checkbox" name="readonly" id="readonly" <?cs 312 312 if wiki.readonly == "1"?>checked="checked"<?cs /if ?> /> 313 313 Page non modifiable</label> tracfrenchtranslation/0.10/trac/attachment.py
r1429 r1888 422 422 ' attached to ' + display(id) 423 423 if format == 'rss': 424 title = Markup(title).striptags() 424 425 descr = wiki_to_html(descr or '--', self.env, req, db, 425 426 absurls=True) … … 552 553 mime_type = mimeview.get_mimetype(attachment.filename, str_data) 553 554 555 # Eventually send the file directly 554 556 format = req.args.get('format') 555 557 if format in ('raw', 'txt'): tracfrenchtranslation/0.10/trac/config.py
r1429 r1888 24 24 25 25 from trac.core import ExtensionPoint, TracError 26 from trac.util import sorted, to_unicode 26 from trac.util import sorted 27 from trac.util.text import to_unicode, CRLF 27 28 28 29 __all__ = ['Configuration', 'Option', 'BoolOption', 'IntOption', 'ListOption', … … 163 164 print>>fileobj, '[%s]' % section 164 165 for key, val in options: 165 if key in self[section].overrid en:166 if key in self[section].overridden: 166 167 print>>fileobj, '# %s = <set in global trac.ini>' % key 167 168 else: 169 val = val.replace(CRLF, '\n').replace('\n', '\n ') 168 170 print>>fileobj, '%s = %s' % \ 169 171 (key, to_unicode(val).encode('utf-8')) … … 196 198 Objects of this class should not be instantiated directly. 197 199 """ 198 __slots__ = ['config', 'name', 'overrid en']200 __slots__ = ['config', 'name', 'overridden'] 199 201 200 202 def __init__(self, config, name): 201 203 self.config = config 202 204 self.name = name 203 self.overrid en = {}205 self.overridden = {} 204 206 205 207 def __contains__(self, name): … … 292 294 self.config.parser.add_section(self.name) 293 295 if value is None: 294 self.overrid en[name] = True296 self.overridden[name] = True 295 297 value = '' 296 298 else: tracfrenchtranslation/0.10/trac/db/api.py
r1434 r1888 18 18 import urllib 19 19 20 from trac.config import Option 20 from trac.config import Option, IntOption 21 21 from trac.core import * 22 22 from trac.db.pool import ConnectionPool … … 58 58 project""") 59 59 60 timeout = IntOption('trac', 'timeout', '20', 61 """Timeout value for database connection, in seconds. 62 Use '0' to specify ''no timeout''. ''(Since 0.11)''""") 63 60 64 def __init__(self): 61 65 self._cnx_pool = None … … 69 73 connector, args = self._get_connector() 70 74 self._cnx_pool = ConnectionPool(5, connector, **args) 71 return self._cnx_pool.get_cnx( )75 return self._cnx_pool.get_cnx(self.timeout or None) 72 76 73 77 def shutdown(self, tid=None): tracfrenchtranslation/0.10/trac/db_default.py
r1429 r1888 164 164 ## 165 165 166 reports = ( 166 def get_reports(db): 167 owner = db.concat('owner', "' *'") 168 return ( 167 169 ('Active Tickets', 168 170 """ … … 174 176 SELECT p.value AS __color__, 175 177 id AS ticket, summary, component, version, milestone, t.type AS type, 176 (CASE status WHEN 'assigned' THEN owner||' *'ELSE owner END) AS owner,178 (CASE status WHEN 'assigned' THEN %s ELSE owner END) AS owner, 177 179 time AS created, 178 180 changetime AS _changetime, description AS _description, 179 181 reporter AS _reporter 180 FROM ticket t, enum p 182 FROM ticket t 183 LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' 181 184 WHERE status IN ('new', 'assigned', 'reopened') 182 AND p.name = t.priority AND p.type = 'priority'183 185 ORDER BY p.value, milestone, t.type, time 184 """ ),186 """ % owner), 185 187 #---------------------------------------------------------------------------- 186 188 ('Active Tickets by Version', … … 196 198 version AS __group__, 197 199 id AS ticket, summary, component, version, t.type AS type, 198 (CASE status WHEN 'assigned' THEN owner||' *'ELSE owner END) AS owner,200 (CASE status WHEN 'assigned' THEN %s ELSE owner END) AS owner, 199 201 time AS created, 200 202 changetime AS _changetime, description AS _description, 201 203 reporter AS _reporter 202 FROM ticket t, enum p 204 FROM ticket t 205 LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' 203 206 WHERE status IN ('new', 'assigned', 'reopened') 204 AND p.name = t.priority AND p.type = 'priority'205 207 ORDER BY (version IS NULL),version, p.value, t.type, time 206 """ ),207 #---------------------------------------------------------------------------- 208 ('A llTickets by Milestone',208 """ % owner), 209 #---------------------------------------------------------------------------- 210 ('Active Tickets by Milestone', 209 211 """ 210 212 This report shows how to color results by priority, … … 216 218 """ 217 219 SELECT p.value AS __color__, 218 milestone||' Release'AS __group__,220 %s AS __group__, 219 221 id AS ticket, summary, component, version, t.type AS type, 220 (CASE status WHEN 'assigned' THEN owner||' *'ELSE owner END) AS owner,222 (CASE status WHEN 'assigned' THEN %s ELSE owner END) AS owner, 221 223 time AS created, 222 224 changetime AS _changetime, description AS _description, 223 225 reporter AS _reporter 224 FROM ticket t, enum p 226 FROM ticket t 227 LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' 225 228 WHERE status IN ('new', 'assigned', 'reopened') 226 AND p.name = t.priority AND p.type = 'priority'227 229 ORDER BY (milestone IS NULL),milestone, p.value, t.type, time 228 """ ),230 """ % (db.concat('milestone', "' Release'"), owner)), 229 231 #---------------------------------------------------------------------------- 230 232 ('Assigned, Active Tickets by Owner', … … 239 241 changetime AS _changetime, description AS _description, 240 242 reporter AS _reporter 241 FROM ticket t,enum p 243 FROM ticket t 244 LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' 242 245 WHERE status = 'assigned' 243 AND p.name=t.priority AND p.type='priority'244 246 ORDER BY owner, p.value, t.type, time 245 247 """), … … 256 258 description AS _description_, 257 259 changetime AS _changetime, reporter AS _reporter 258 FROM ticket t, enum p 260 FROM ticket t 261 LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' 259 262 WHERE status = 'assigned' 260 AND p.name = t.priority AND p.type = 'priority'261 263 ORDER BY owner, p.value, t.type, time 262 264 """), … … 278 280 changetime AS modified, 279 281 time AS _time,reporter AS _reporter 280 FROM ticket t ,enum p281 WHERE p.name=t.priority AND p.type='priority'282 FROM ticket t 283 LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' 282 284 ORDER BY (milestone IS NULL), milestone DESC, (status = 'closed'), 283 285 (CASE status WHEN 'closed' THEN modified ELSE (-1)*p.value END) DESC … … 297 299 changetime AS _changetime, description AS _description, 298 300 reporter AS _reporter 299 FROM ticket t , enum p300 WHERE t.status IN ('new', 'assigned', 'reopened')301 AND p.name = t.priority AND p.type = 'priority'AND owner = '$USER'301 FROM ticket t 302 LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' 303 WHERE t.status IN ('new', 'assigned', 'reopened') AND owner = '$USER' 302 304 ORDER BY (status = 'assigned') DESC, p.value, milestone, t.type, time 303 305 """), … … 315 317 END) AS __group__, 316 318 id AS ticket, summary, component, version, milestone, t.type AS type, 317 (CASE status WHEN 'assigned' THEN owner||' *'ELSE owner END) AS owner,319 (CASE status WHEN 'assigned' THEN %s ELSE owner END) AS owner, 318 320 time AS created, 319 321 changetime AS _changetime, description AS _description, 320 322 reporter AS _reporter 321 FROM ticket t, enum p 323 FROM ticket t 324 LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority' 322 325 WHERE status IN ('new', 'assigned', 'reopened') 323 AND p.name = t.priority AND p.type = 'priority'324 326 ORDER BY (owner = '$USER') DESC, p.value, milestone, t.type, time 325 """ ))327 """ % owner)) 326 328 327 329 … … 331 333 332 334 # (table, (column1, column2), ((row1col1, row1col2), (row2col1, row2col2))) 333 data = (('component', 335 def get_data(db): 336 return (('component', 334 337 ('name', 'owner'), 335 338 (('component1', 'somebody'), … … 387 390 ('report', 388 391 ('author', 'title', 'query', 'description'), 389 __mkreports(reports))) 392 __mkreports(get_reports(db)))) 393 390 394 391 395 default_components = ('trac.About', 'trac.attachment', tracfrenchtranslation/0.10/trac/db/mysql_backend.py
r1429 r1888 1 # -*- coding: iso8859-1-*-1 # -*- coding: utf-8 -*- 2 2 # 3 3 # Copyright (C) 2005-2006 Edgewall Software … … 151 151 return 'CAST(%s AS %s)' % (column, type) 152 152 153 def concat(self, *args): 154 return 'concat(%s)' % ', '.join(args) 155 153 156 def like(self): 154 157 return "LIKE %s ESCAPE '/'" … … 159 162 def get_last_id(self, cursor, table, column='id'): 160 163 return self.cnx.insert_id() 164 165 def rollback(self): 166 self.cnx.rollback() 167 self.cnx.ping() tracfrenchtranslation/0.10/trac/db/pool.py
r1434 r1888
