[pology] pology.catalog.Catalog doubt
caslav.ilic at gmx.net
Sat May 25 05:12:16 PDT 2013
> [: mvillarino :]
> Is there a way to merge_pofile a Catalog object, whose contents come from
> a StringIO (so no path on filesystem) with a pot file with path?
In principle it would be possible to add this capability, but since msgmerge
is used, it would anyway have to be implemented through temporary files. So
one might as well do it like that manually:
from tempfile import NamedTemporaryFile
cat = Catalog(...)
tmpf = NamedTemporaryFile(prefix="whatever", suffix=".po")
Chusslove Illich (Часлав Илић)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: This is a digitally signed message part.
More information about the pology