openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23032
[Bug 1116948] [NEW] document module TypeError: 'NoneType' object is not iterable in pdf files
Public bug reported:
to upload images no problem but the following happens pdf files in
document module.
Client Traceback (most recent call last):
File "/opt/openerp/7.0/it/openerp/addons/web/http.py", line 195, in dispatch
response["result"] = method(self, **self.params)
File "/opt/openerp/7.0/it/openerp/addons/web/controllers/main.py", line 1078, in call_kw
return self._call_kw(req, model, method, args, kwargs)
File "/opt/openerp/7.0/it/openerp/addons/web/controllers/main.py", line 1070, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 40, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 28, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 101, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 87, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/opt/openerp/7.0/it/openerp/netsvc.py", line 281, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp/7.0/it/openerp/service/web_services.py", line 614, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 169, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 123, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 179, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 166, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/7.0/it/openerp/addons/document/document.py", line 121, in create
vals['file_type'], vals['index_content'] = self._index(cr, uid, vals['datas'].decode('base64'), vals.get('datas_fname', False), None)
File "/opt/openerp/7.0/it/openerp/addons/document/document.py", line 132, in _index
mime, icont = cntIndex.doIndex(data, datas_fname, file_type or None, None)
TypeError: 'NoneType' object is not iterable
** Affects: openobject-addons
Importance: Undecided
Status: New
** Description changed:
-
- to upload images no problem but the following happens pdf files.
-
+ to upload images no problem but the following happens pdf files in
+ document module.
Client Traceback (most recent call last):
- File "/opt/openerp/7.0/it/openerp/addons/web/http.py", line 195, in dispatch
- response["result"] = method(self, **self.params)
- File "/opt/openerp/7.0/it/openerp/addons/web/controllers/main.py", line 1078, in call_kw
- return self._call_kw(req, model, method, args, kwargs)
- File "/opt/openerp/7.0/it/openerp/addons/web/controllers/main.py", line 1070, in _call_kw
- return getattr(req.session.model(model), method)(*args, **kwargs)
- File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 40, in proxy
- result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
- File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 28, in proxy_method
- result = self.session.send(self.service_name, method, *args)
- File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 101, in send
- raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
-
+ File "/opt/openerp/7.0/it/openerp/addons/web/http.py", line 195, in dispatch
+ response["result"] = method(self, **self.params)
+ File "/opt/openerp/7.0/it/openerp/addons/web/controllers/main.py", line 1078, in call_kw
+ return self._call_kw(req, model, method, args, kwargs)
+ File "/opt/openerp/7.0/it/openerp/addons/web/controllers/main.py", line 1070, in _call_kw
+ return getattr(req.session.model(model), method)(*args, **kwargs)
+ File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 40, in proxy
+ result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
+ File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 28, in proxy_method
+ result = self.session.send(self.service_name, method, *args)
+ File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 101, in send
+ raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
- File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 87, in send
- return openerp.netsvc.dispatch_rpc(service_name, method, args)
- File "/opt/openerp/7.0/it/openerp/netsvc.py", line 281, in dispatch_rpc
- result = ExportService.getService(service_name).dispatch(method, params)
- File "/opt/openerp/7.0/it/openerp/service/web_services.py", line 614, in dispatch
- res = fn(db, uid, *params)
- File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 169, in execute_kw
- return self.execute(db, uid, obj, method, *args, **kw or {})
- File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 123, in wrapper
- return f(self, dbname, *args, **kwargs)
- File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 179, in execute
- res = self.execute_cr(cr, uid, obj, method, *args, **kw)
- File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 166, in execute_cr
- return getattr(object, method)(cr, uid, *args, **kw)
- File "/opt/openerp/7.0/it/openerp/addons/document/document.py", line 121, in create
- vals['file_type'], vals['index_content'] = self._index(cr, uid, vals['datas'].decode('base64'), vals.get('datas_fname', False), None)
- File "/opt/openerp/7.0/it/openerp/addons/document/document.py", line 132, in _index
- mime, icont = cntIndex.doIndex(data, datas_fname, file_type or None, None)
+ File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 87, in send
+ return openerp.netsvc.dispatch_rpc(service_name, method, args)
+ File "/opt/openerp/7.0/it/openerp/netsvc.py", line 281, in dispatch_rpc
+ result = ExportService.getService(service_name).dispatch(method, params)
+ File "/opt/openerp/7.0/it/openerp/service/web_services.py", line 614, in dispatch
+ res = fn(db, uid, *params)
+ File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 169, in execute_kw
+ return self.execute(db, uid, obj, method, *args, **kw or {})
+ File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 123, in wrapper
+ return f(self, dbname, *args, **kwargs)
+ File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 179, in execute
+ res = self.execute_cr(cr, uid, obj, method, *args, **kw)
+ File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 166, in execute_cr
+ return getattr(object, method)(cr, uid, *args, **kw)
+ File "/opt/openerp/7.0/it/openerp/addons/document/document.py", line 121, in create
+ vals['file_type'], vals['index_content'] = self._index(cr, uid, vals['datas'].decode('base64'), vals.get('datas_fname', False), None)
+ File "/opt/openerp/7.0/it/openerp/addons/document/document.py", line 132, in _index
+ mime, icont = cntIndex.doIndex(data, datas_fname, file_type or None, None)
TypeError: 'NoneType' object is not iterable
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1116948
Title:
document module TypeError: 'NoneType' object is not iterable in pdf
files
Status in OpenERP Addons (modules):
New
Bug description:
to upload images no problem but the following happens pdf files in
document module.
Client Traceback (most recent call last):
File "/opt/openerp/7.0/it/openerp/addons/web/http.py", line 195, in dispatch
response["result"] = method(self, **self.params)
File "/opt/openerp/7.0/it/openerp/addons/web/controllers/main.py", line 1078, in call_kw
return self._call_kw(req, model, method, args, kwargs)
File "/opt/openerp/7.0/it/openerp/addons/web/controllers/main.py", line 1070, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 40, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 28, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 101, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/opt/openerp/7.0/it/openerp/addons/web/session.py", line 87, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/opt/openerp/7.0/it/openerp/netsvc.py", line 281, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp/7.0/it/openerp/service/web_services.py", line 614, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 169, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 123, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 179, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/7.0/it/openerp/osv/osv.py", line 166, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/7.0/it/openerp/addons/document/document.py", line 121, in create
vals['file_type'], vals['index_content'] = self._index(cr, uid, vals['datas'].decode('base64'), vals.get('datas_fname', False), None)
File "/opt/openerp/7.0/it/openerp/addons/document/document.py", line 132, in _index
mime, icont = cntIndex.doIndex(data, datas_fname, file_type or None, None)
TypeError: 'NoneType' object is not iterable
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1116948/+subscriptions
Follow ups
References