Support searching for Class.methodname.

This commit is contained in:
Georg Brandl 2009-05-17 12:12:24 +02:00
parent d31ae6884c
commit 3fc8f0c33c
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
Release 0.6.2 (in development)
==============================
* Fix the search for methods via "classname.methodname".
* #155: Fix Python 2.4 compatibility: exceptions are old-style
classes there.

View File

@ -341,9 +341,9 @@ var Search = {
}
for (var prefix in descrefs) {
for (var name in descrefs[prefix]) {
if (name.toLowerCase().indexOf(object) > -1) {
fullname = (prefix ? prefix + '.' : '') + name;
if (fullname.toLowerCase().indexOf(object) > -1) {
match = descrefs[prefix][name];
fullname = (prefix ? prefix + '.' : '') + name;
descr = desctypes[match[1]] + _(', in ') + titles[match[0]];
objectResults.push([filenames[match[0]], fullname, '#'+fullname, descr]);
}