appy.bin: job.py: allow to specify several commands to execute (to separate with semicolons); appy.gen: translate: added the possibility to escape XML special chars in translations; appy.pod: bugfix in buffers.write: if content is already utf-8-encoded it does not crash anymore.

This commit is contained in:
Gaetan Delannay 2011-06-28 09:12:20 +02:00
parent 344229e3a9
commit e38b78d10c
4 changed files with 29 additions and 14 deletions

View file

@ -177,7 +177,10 @@ class FileBuffer(Buffer):
def getLength(self): return 0
def write(self, something):
self.content.write(something.encode('utf-8'))
try:
self.content.write(something.encode('utf-8'))
except UnicodeDecodeError:
self.content.write(something)
def addExpression(self, expression):
try: