[FIX] Document : Import declaration was missing for Popen

lp bug: https://launchpad.net/bugs/538225 fixed

bzr revid: jvo@tinyerp.com-20100315071709-f8mjbm9vb5byht69
This commit is contained in:
YSA(OpenERP)
2010-03-15 12:47:09 +05:30
committed by Jay (Open ERP)
parent 65a150d3a3
commit 9114ef2732
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -65,14 +65,14 @@ class document_directory(osv.osv):
objid=self.pool.get('ir.model.data')
try:
mid = objid._get_id(cr, uid, 'document', 'dir_root')
return None # TODO: check why not display root dir
return False # TODO: check why not display root dir
if not mid:
return None
return False
except Exception, e:
import netsvc
logger = netsvc.Logger()
logger.notifyChannel("document", netsvc.LOG_WARNING, 'Cannot set directory root:'+ str(e))
return None
return False
return objid.browse(cr, uid, mid, context=context).res_id
def _get_def_storage(self,cr,uid,context=None):
+1 -1
View File
@@ -23,7 +23,7 @@ import StringIO
import odt2txt
from content_index import indexer, cntIndex
from subprocess import Popen, PIPE
def _to_unicode(s):
try: