What is the command to simply "install a patch"? I have tried several "patch commands" but not found.
I have manually tried to apply them to
backend_adapter.py and
partner.py
backend_adapter.py is giving me an error:
Indentation Error - expected an indented block (likely not to the errors in partner.py)
(the following is what I added changed, leading and trailing lines left intact)
try:
# with magentolib.API(self.magento.location,
# self.magento.username,
# self.magento.password) as api:
# result = api.call(method, arguments)
# # Uncomment to record requests/responses in ``recorder``
# # record(method, arguments, result)
# (Added next 12 lines from php_version.patch)
with magentolib.API(self.magento.location, self.magento.username, self.magento.password) as api:
# If magento is used with PHP version >= 5.4, then we have to remove all
# trailing None values
if isinstance(arguments, list) and len(arguments) > 0 and arguments[-1] is None: arguments = [a for a in arguments if a is not None]
result = api.call(method, arguments)
# Uncomment to record requests/responses in ``recorder``
# record(method, arguments, result) _logger.debug("api.call(%s, %s) returned %s",
(Thoughts on this>) (Also somehow my "module web is no longer loading - I don't recall it but likely important)
The Trace Error is a bit like this from screenshot:
File "/opt/openerp/source/openerp-connector-magento/magentoerpconnect/unit/backend_adapter.py", line 139
if isinstance(arguments, list) and len(arguments) > 0 and arguments[-1] is None:
A
IndentationError: expected an indented block
2014-04-10 22:17:26,031 INFO HTTP service (werkzeug) running on 0.0.0.0:40069
2014-04-10 22:17:26,031 1450 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:40069
2014-04-10 22:17:26,179 INFO OpenERP server is running, waiting for connections...
2014-04-10 22:17:26,179 1450 INFO ? openerp: OpenERP server is running, waiting for connections...
2014-04-10 22:17:31,431 INFO loading 1 modules...
2014-04-10 22:17:31,431 1450 INFO active openerp.modules.loading: loading 1 modules...
2014-04-10 22:17:33,402 INFO loading 101 modules...
2014-04-10 22:17:33,402 1450 INFO active openerp.modules.loading: loading 101 modules...
2014-04-10 22:17:33,423 CRITICAL Couldn't load module web
2014-04-10 22:17:33,423 1450 active openerp.modules.module: Couldn't load module web
2014-04-10 22:17:33,423 CRITICAL expected an indented block (backend_adapter.py, line 139)
2014-04-10 22:17:33,423 1450 active openerp.modules.module: expected an indented block (backend_adapter.py, line 139)
Exception in thread Thread-1:
Traceback (most recent call last):
What is the command to simply "install a patch"? I have tried several "patch commands" but not found.
I have manually tried to apply them to
backend_adapter.py and
partner.py
backend_adapter.py is giving me an error:
(likely not to the errors in partner.py)
Indentation Error - expected an indented block
(the following is what I added changed, leading and trailing lines left intact)
try: API(self. magento. location, username, password) as api: API(self. magento. location,
self. magento. username,
self. magento. password) as api:
# with magentolib.
# self.magento.
# self.magento.
# result = api.call(method, arguments)
# # Uncomment to record requests/responses in ``recorder``
# # record(method, arguments, result)
# (Added next 12 lines from php_version.patch)
with magentolib.
# If magento is used with PHP version >= 5.4, then we have to remove all arguments, list) and len(arguments) > 0 and arguments[-1] is None:
arguments = [a for a in arguments if a is not None]
# trailing None values
if isinstance(
# Uncomment to record requests/responses in ``recorder``
# record(method, arguments, result)
(Thoughts on this>) (Also somehow my "module web is no longer loading - I don't recall it but likely important)
The Trace Error is a bit like this from screenshot: source/ openerp- connector- magento/ magentoerpconne ct/unit/ backend_ adapter. py", line 139 arguments, list) and len(arguments) > 0 and arguments[-1] is None: service. wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:40069 modules. loading: loading 1 modules... modules. loading: loading 101 modules... modules. module: Couldn't load module web adapter. py, line 139) modules. module: expected an indented block (backend_ adapter. py, line 139)
File "/opt/openerp/
if isinstance(
A
IndentationError: expected an indented block
2014-04-10 22:17:26,031 INFO HTTP service (werkzeug) running on 0.0.0.0:40069
2014-04-10 22:17:26,031 1450 INFO ? openerp.
2014-04-10 22:17:26,179 INFO OpenERP server is running, waiting for connections...
2014-04-10 22:17:26,179 1450 INFO ? openerp: OpenERP server is running, waiting for connections...
2014-04-10 22:17:31,431 INFO loading 1 modules...
2014-04-10 22:17:31,431 1450 INFO active openerp.
2014-04-10 22:17:33,402 INFO loading 101 modules...
2014-04-10 22:17:33,402 1450 INFO active openerp.
2014-04-10 22:17:33,423 CRITICAL Couldn't load module web
2014-04-10 22:17:33,423 1450 active openerp.
2014-04-10 22:17:33,423 CRITICAL expected an indented block (backend_
2014-04-10 22:17:33,423 1450 active openerp.
Exception in thread Thread-1:
Traceback (most recent call last):