[gen] When duplicating a file via appy.fields.file::FileInfo.replicateFile, the source file can be binary data in a str instead of an opened file handler.

This commit is contained in:
Gaetan Delannay 2014-10-01 16:21:12 +02:00
parent ae69509354
commit a671094167
3 changed files with 6 additions and 1 deletions

View file

@ -249,6 +249,7 @@ class XmlParser(ContentHandler, ErrorHandler):
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
self._xml = xml
self.parser.setContentHandler(self)
self.parser.setErrorHandler(self)
self.parser.setFeature(feature_external_ges, False)