| Home | Trees | Index | Help |
|---|
| Package Pootle :: Package storage :: Module api :: Class ISearchable |
|
object--+ |Interface--+ | ISearchable
IFolder,
IModule,
ITranslationStore| Method Summary | |
|---|---|
Search for a substring in all translation units. | |
| Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Method Details |
|---|
find(self, substring)Search for a substring in all translation units. Returns a list of translation units where `substring` is in one of the msgids or in one of the translations. TODO: search options: exact match, case insensitive, search just source text or just translation text, etc. TODO: return small objects that only reference the real ones? Otherwise this could cause trouble with persistence or efficiency. If invoked on a container (a folder or a module), performs a recursive search. |
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Tue Aug 22 04:29:45 2006 | http://epydoc.sf.net |