Home | Trees | Indices | Help |
---|
|
object --+ | list --+ | _BaseFile
Common parent class for POFile and MOFile classes. This class must **not** be instanciated directly.
|
|||
new list |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Constructor. **Keyword arguments**:
|
String representation of the file.
|
Return the official string representation of the object.
|
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*. **Keyword arguments**:
**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' |
Convenience method that return the metadata ordered. The return value is list of tuples (metadata name, metadata_value). |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Nov 26 19:13:55 2008 | http://epydoc.sourceforge.net |