-
omargeek
-
-
Offline
-
Junior Boarder
-
- Messaggi: 32
-
Karma: 0
-
|
Tornando sul problema "connettore" ..
Adesso, nella nuova installazione con un nuovo db, il menu funziona regolarmente.. ho creato il mio Backend e premendo il pulsante "Synchronize Metadata" ottengo questo simpatico errore: Traceback (most recent call last):
File "/home/openerp/lp/openerp/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/openerp/lp/openerp/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/openerp/lp/openerp/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/prestashop_model.py", line 109, in synchronize_metadata
import_batch(session, model, backend_id)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 787, in import_batch
importer.run(filters=filters, **kwargs)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 182, in run
record_ids = self._run_page(filters, **kwargs)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 192, in _run_page
self._import_record(record_id, **kwargs)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 258, in _import_record
record
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 795, in import_record
importer.run(prestashop_id)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 136, in run
self.mapper.convert(self.prestashop_record)
File "/home/openerp/lp/openerp-connector/connector/unit/mapper.py", line 717, in convert
raise DeprecationWarning('Mapper.convert() has been deprecated, '
DeprecationWarning: Mapper.convert() has been deprecated, use Mapper.map_record() then map_record.values()
2014-02-17 08:58:23,296 5213 ERROR intellis openerp.netsvc: Mapper.convert() has been deprecated, use Mapper.map_record() then map_record.values()
Traceback (most recent call last):
File "/home/openerp/lp/openerp/openerp/netsvc.py", line 292, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/openerp/lp/openerp/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/home/openerp/lp/openerp/openerp/osv/osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/openerp/lp/openerp/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/openerp/lp/openerp/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/openerp/lp/openerp/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/prestashop_model.py", line 109, in synchronize_metadata
import_batch(session, model, backend_id)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 787, in import_batch
importer.run(filters=filters, **kwargs)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 182, in run
record_ids = self._run_page(filters, **kwargs)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 192, in _run_page
self._import_record(record_id, **kwargs)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 258, in _import_record
record
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 795, in import_record
importer.run(prestashop_id)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 136, in run
self.mapper.convert(self.prestashop_record)
File "/home/openerp/lp/openerp-connector/connector/unit/mapper.py", line 717, in convert
raise DeprecationWarning('Mapper.convert() has been deprecated, '
DeprecationWarning: Mapper.convert() has been deprecated, use Mapper.map_record() then map_record.values()
Ho modificato a mano il file /home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py alla riga 136 mettendo al posto di Mapper.convert() Mapper.map_record() ..
ed adesso ho questo errore:
Client Traceback (most recent call last):
File "/home/openerp/lp/web/addons/web/http.py", line 204, in dispatch
response["result"] = method(self, **self.params)
File "/home/openerp/lp/web/addons/web/controllers/main.py", line 1132, in call_button
action = self._call_kw(req, model, method, args, {})
File "/home/openerp/lp/web/addons/web/controllers/main.py", line 1120, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/home/openerp/lp/web/addons/web/session.py", line 42, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/home/openerp/lp/web/addons/web/session.py", line 30, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/home/openerp/lp/web/addons/web/session.py", line 103, in send
raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)
Server Traceback (most recent call last):
File "/home/openerp/lp/web/addons/web/session.py", line 89, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/openerp/lp/openerp/openerp/netsvc.py", line 292, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/openerp/lp/openerp/openerp/service/web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "/home/openerp/lp/openerp/openerp/osv/osv.py", line 190, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/openerp/lp/openerp/openerp/osv/osv.py", line 132, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/openerp/lp/openerp/openerp/osv/osv.py", line 199, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/openerp/lp/openerp/openerp/osv/osv.py", line 187, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/prestashop_model.py", line 109, in synchronize_metadata
import_batch(session, model, backend_id)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 788, in import_batch
importer.run(filters=filters, **kwargs)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 183, in run
record_ids = self._run_page(filters, **kwargs)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 193, in _run_page
self._import_record(record_id, **kwargs)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 259, in _import_record
record
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 796, in import_record
importer.run(prestashop_id)
File "/home/openerp/lp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 141, in run
record = self.mapper.data_for_create
File "/home/openerp/lp/openerp-connector/connector/unit/mapper.py", line 735, in data_for_create
raise DeprecationWarning('Mapper.data_for_create has been deprecated, '
DeprecationWarning: Mapper.data_for_create has been deprecated, use Mapper.map_record() then map_record.values()
Ora la mia domanda e' questa.. Non e' che queste versione del connettore prestashop non va bene per il mia installazione di OE7?
Grazie
|