Home | Trees | Indices | Help |
---|
|
object --+ | list --+ | _BaseFile
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Constructor. **Keyword arguments**:
|
|
|
Save the po file to file *fpath* if no file handle exists for the object. If there's already an open file and no fpath is provided, then the existing file is rewritten with the modified data. **Keyword arguments**:
|
Find entry which msgid (or property identified by the *by* attribute) matches the string *st*. **Examples**:>>> po = pofile('tests/test_utf8.po') >>> entry = po.find('Thursday') >>> entry.msgstr 'Jueves' >>> entry = po.find('Some unexistant msgid') >>> entry is None True >>> entry = po.find('Jueves', 'msgstr') >>> entry.msgid 'Thursday' |
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Tue Dec 11 12:11:51 2007 | http://epydoc.sourceforge.net |