| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
list --+
|
_BaseFile --+
|
MOFile
Mo file reader/writer. MOFile objects inherit the list objects methods.
Example:
>>> mo = MOFile() >>> entry1 = POEntry( ... msgid="Some english text", ... msgstr="Un texte en anglais" ... ) >>> entry2 = POEntry( ... msgid="I need my dirty cheese", ... msgstr="Je veux mon sale fromage" ... ) >>> mo.append(entry1) >>> mo.append(entry2) >>> print mo msgid "" msgstr "" <BLANKLINE> msgid "Some english text" msgstr "Un texte en anglais" <BLANKLINE> msgid "I need my dirty cheese" msgstr "Je veux mon sale fromage" <BLANKLINE>
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Save the string representation of the file to fpath.
|
Save the binary representation of the file to fpath.
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Wed Oct 17 18:34:06 2007 | http://epydoc.sourceforge.net |