[erp5] FormBoxEditor keeps correct context as its attribute
Showing
-
Owner
This breaks 2 tests:
====================================================================== FAIL: test_normal_form (testDeferredStyle.TestODSDeferredStyle) ---------------------------------------------------------------------- Traceback (most recent call last): File "/srv/slapgrid/slappart5/srv/testnode/asg/soft/6e6f41acb31007fd55a70521ee8290a0/parts/erp5/Products/ERP5OOo/tests/testDeferredStyle.py", line 130, in test_normal_form self.assertNotEquals((), last_message) AssertionError: () == () ====================================================================== FAIL: test_normal_form (testDeferredStyle.TestODTDeferredStyle) ---------------------------------------------------------------------- Traceback (most recent call last): File "/srv/slapgrid/slappart5/srv/testnode/asg/soft/6e6f41acb31007fd55a70521ee8290a0/parts/erp5/Products/ERP5OOo/tests/testDeferredStyle.py", line 149, in test_normal_form self.fail('Attachment not found in email\n%s' % message_text) AssertionError: Attachment not found in email
-
Are you sure it is my commit which broke those tests? I don't see any link ...
-
Owner
Yes, this commit broke testDeferredStyle. To understand more, here is the zope log with the test :
2017-08-31 14:57:24.870 INFO Tracking queuing message: activity=SQLQueue, object_path=/erp5/person_module/pers, method_id=Base_renderSimpleView, args=(), kw={'request_form': {'default_fax': <Products.ERP5Form.FormBox.FormBoxEditor instance at 0x7fe89c0ebc68>, 'dialog_id': 'Person_view', 'junk': 'XXX...XXX', 'dialog_method': 'Person_view', 'deferred_portal_skin': 'ODT', 'default_telephone': <Products.ERP5Form.FormBox.FormBoxEditor instance at 0x7fe89b2bd098>, 'mobile_telephone': <Products.ERP5Form.FormBox.FormBoxEditor instance at 0x7fe8928835f0>, 'deferred_style': 1}, 'params': {}, 'localizer_language': 'en', 'skin_name': 'ODT', 'user_name': 'P0', 'deferred_style_dialog_method': 'Person_view'}, activity_kw={'priority': 3, 'tag': 'active-report-wrapped-843'}, user_name=P0 2017-08-31 14:57:24.870 INFO Tracking queuing message: activity=SQLQueue, object_path=/erp5/person_module/pers, method_id=getTitle, args=(), kw={}, activity_kw={'after_tag': 'active-report-wrapped-843'}, user_name=P0 2017-08-31 14:57:24.875 ERROR ActivityBuffer exception during _prepare Traceback (most recent call last): File "/srv/slapgrid/slappart0/srv/runner/software/d65309081a071d10fa34fce376e82fd7/parts/erp5/product/CMFActivity/ActivityBuffer.py", line 64, in _prepare activity.prepareQueueMessageList(activity_tool, message_list) File "/srv/slapgrid/slappart0/srv/runner/software/d65309081a071d10fa34fce376e82fd7/parts/erp5/product/CMFActivity/Activity/SQLBase.py", line 147, in prepareQueueMessageList message_list=map(Message.dump, message_list), TypeError: Can't pickle objects in acquisition wrappers.
You can see that default_fax, default_telephone and mobile_telephone arguments are ERP5 objects (i.e. acquisition wrappers that cannot be pickled).
-
mentioned in merge request !363 (merged)
-
Hi, thank you for the help. I came up with a fix - full test results coming up https://nexedijs.erp5.net/#/test_result_module/20170831-29851556
-
mentioned in commit Sokhoyan/erp5@7140dbc0
-
mentioned in merge request !622 (merged)
Please register or sign in to comment