[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:
committed by
Jay (Open ERP)
parent
65a150d3a3
commit
9114ef2732
@@ -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):
|
||||
|
||||
@@ -23,7 +23,7 @@ import StringIO
|
||||
import odt2txt
|
||||
|
||||
from content_index import indexer, cntIndex
|
||||
|
||||
from subprocess import Popen, PIPE
|
||||
|
||||
def _to_unicode(s):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user