Package Pootle :: Package storage :: Module api :: Class ISearchable
[show private | hide private]
[frames | no frames]

Type ISearchable

object --+    
         |    
 Interface --+
             |
            ISearchable

Known Subclasses:
IFolder, IModule, ITranslationStore

An object that can be searched.
Method Summary
  find(self, substring)
Search for a substring in all translation units.
    Inherited from object
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
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.

Generated by Epydoc 2.1 on Tue Aug 22 04:29:45 2006 http://epydoc.sf.net