Edgewall Software
Home
Trac
Trac Hacks
Genshi
Babel
Bitten
Home
Download
Documentation
Mailing Lists
License
FAQ
Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
Browse Source
View Tickets
New Ticket
Search
Context Navigation
+1
Start Page
Index
History
Editing TracDev/ApiChanges/0.10
Adjust edit area height:
8
12
16
20
24
28
32
36
40
Edit side-by-side
= TracDev/ApiChanges/0.10 = This page is aimed to help plugin developers to port their 0.9 plugin to Trac 0.10. == General Changes == The most important single change in 0.10 was the switch to using `unicode` everywhere internally. See TracDev/UnicodeGuidelines. == Interface Changes == === `ISearchSource` ^[source:trunk/trac/Search.py@head#L30 (0.10)] [source:branches/0.9-stable/trac/Search.py@head#L29 (0.9)]^ === #ISearchSource The `get_search_results(self, req, terms, filters)` now takes a list of `terms` instead of the full `query`, as it used to do for its second argument. Example: [trachacks:DoxygenPlugin] {{{ #!diff --- doxygentrac/doxygentrac.py Tue Aug 29 14:03:33 2006 +0200 +++ doxygentrac/doxygentrac.py Tue Aug 29 14:04:10 2006 +0200 @@ -212,13 +212,9 @@ yield('doxygen', title) - def get_search_results(self, req, query, filters): + def get_search_results(self, req, keywords, filters): if not 'doxygen' in filters: return - if query[0] == query[-1] == "'" or query[0] == query[-1] == '"': - keywords = [query[1:-1]] - else: - keywords = query.split(' ') base_path = self.config.get('doxygen', 'path') }}} ---- See also: ["TracDev/ReleaseNotes/0.10"]
Note:
See
WikiFormatting
and
TracWiki
for help on editing wiki content.
Change information
Your email or username:
E-mail address and name can be saved in the
Preferences
Comment about this change (optional):
Note:
See
TracWiki
for help on using the wiki.