Ravi Gohil (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/5.0-opw-381924-rgo into 
lp:openobject-addons/5.0.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/5.0-opw-381924-rgo/+merge/91613

Hello,

When we create an attachment with .pdf file extension, a copy is been created 
in /tmp(temporary) folder of ubuntu system and stays in the system until 
rebooted or manually deleted.

This fixes the issue.

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/5.0-opw-381924-rgo/+merge/91613
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/5.0-opw-381924-rgo.
=== modified file 'document/content_index.py'
--- document/content_index.py	2009-09-03 12:50:00 +0000
+++ document/content_index.py	2012-02-06 07:23:20 +0000
@@ -56,6 +56,7 @@
         fp = os.popen('pdftotext -enc UTF-8 -nopgbrk '+file_name+' -', 'r')
         result = fp.read()
         fp.close()
+        os.unlink(file_name)
     elif ext in ('.xls','.ods','.odt','.odp'):
         s = StringIO.StringIO(content)
         o = odt2txt.OpenDocumentTextFile(s)

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to