[FIX]: document_ftp: Fixed problem of importing ics file

bzr revid: rpa@tinyerp.com-20100423134533-t8c53tctk7zy6191
This commit is contained in:
rpa (Open ERP)
2010-04-23 19:15:33 +05:30
parent 28af27215f
commit a056b92602
@@ -97,7 +97,7 @@ class content_wrapper(StringIO.StringIO):
cr = db.cursor()
cr.commit()
try:
getattr(self.pool.get('document.directory.content'), 'process_write_'+self.node.content.extension[1:])(cr, self.uid, self.node, self.getvalue())
getattr(self.pool.get('document.directory.content'), 'process_write')(cr, self.uid, self.node, self.getvalue())
finally:
cr.commit()
cr.close()