1. 14 Mar, 2019 2 commits
    • ui_test_core: remove dead code · fcd4c826
      These extensions does not seem to be used.
      
      /reviewed-on !845
      Jérome Perrin committed
    • Repair testFunctionalStandaloneUserTutorial · ddd3e26c
      Test was never ending processing activities:
      
      ```
      2019-03-11T03:09:20 WARNING CMFActivity invalid after_path_and_method_id value: ('/erp5/organisation_module/2', 'immediateRecusriveReindexObject', 'immediateReindexObject')
      Traceback (most recent call last):
        File "product/CMFActivity/Activity/SQLBase.py", line 319, in getValidationSQL
          validate_list.append(' AND '.join(method(v, quote)))
        File "product/CMFActivity/Activity/SQLBase.py", line 345, in _validate_after_path_and_method_id
          path, method_id = value
      ValueError: too many values to unpack
      2019-03-11T03:09:20 WARNING CMFActivity invalid after_path_and_method_id value: ('/erp5/organisation_module/2', 'immediateRecusriveReindexObject', 'immediateReindexObject')
      Traceback (most recent call last):
        File "product/CMFActivity/Activity/SQLBase.py", line 319, in getValidationSQL
          validate_list.append(' AND '.join(method(v, quote)))
        File "product/CMFActivity/Activity/SQLBase.py", line 345, in _validate_after_path_and_method_id
          path, method_id = value
      ValueError: too many values to unpack
      2019-03-11T03:09:20 WARNING CMFActivity invalid after_path_and_method_id value: ('/erp5/organisation_module/2', 'immediateRecusriveReindexObject', 'immediateReindexObject')
      Traceback (most recent call last):
        File "product/CMFActivity/Activity/SQLBase.py", line 319, in getValidationSQL
          validate_list.append(' AND '.join(method(v, quote)))
        File "product/CMFActivity/Activity/SQLBase.py", line 345, in _validate_after_path_and_method_id
          path, method_id = value
      ValueError: too many values to unpack
      2019-03-11T03:09:20 ERROR CMFActivity message uid 7256619472683296857L has a circular dependency
       ```
      
      Fix this failing test by using the proper `after_path_and_method_id` syntax and also some other small changes to make the test fail earlier in case of problems.
      
      /reviewed-on !844
      Jérome Perrin committed
  2. 13 Mar, 2019 2 commits
    • erp5_trade: use shorter cache for resource list · 1f254aa7
      erp5_ui_long is too long for user to use fast input for the following scenario:
      1. user create purchase order
      2. user use fast input to enter product with reference 324214(a missing product)
      3. user type 324214 in fast input, it found nothing in Product or Service
      4. then user create such product 324214
      5. then user go back to purchase order and type again 324214
      since previous result is still cached for one hour and user still can't find it.
      
      in one hour, user is not available to add such product
      Xiaowu Zhang committed
    • ui_test_core: shift time in Zuite_waitForActivities · 494f871f
      For consistency with ERP5TypeTestCase.tic for server side unit test, use
      timeShift to simulate a progress in time so that activities scheduled
      for executation at a later time ( using activate(at_date=...) ) are
      executed.
      Jérome Perrin committed
  3. 12 Mar, 2019 1 commit
  4. 11 Mar, 2019 2 commits
  5. 08 Mar, 2019 1 commit
  6. 07 Mar, 2019 9 commits
  7. 06 Mar, 2019 1 commit
  8. 04 Mar, 2019 1 commit
    • CMFActivity: new activate() parameter to prefer executing on the same node · 1bbd5e6e
      This implements a special case of node specialization, to make better
      use of the ZODB Storage cache. By default, a non-grouped message is
      marked to be executed by the same node that created it, if the object
      is not a tool and if it was not activated by path. This can be
      overridden (either forced or prevented) using a new 'node' activate()
      parameter. See message of the first merged commits for details, and
      also ActiveObject.activate() docstring. For SQLDict & SQLQueue only.
      
      In the future, the new 'node' argument could accept any other string
      value that refers to a group of nodes. Groups would be defined on the
      activity tool, and be assigned negative integers. Contrary to what is
      implemented here, such specialization would be strict, in that a node
      would never process a message for a group it does not belong.
      
      /reviewed-on !836
      Julien Muchembled committed
  9. 27 Feb, 2019 1 commit
  10. 26 Feb, 2019 4 commits
  11. 25 Feb, 2019 1 commit
  12. 22 Feb, 2019 2 commits
  13. 20 Feb, 2019 2 commits
  14. 15 Feb, 2019 6 commits
  15. 14 Feb, 2019 2 commits
  16. 12 Feb, 2019 1 commit
    • ZODB Components: Likewise Document, add Mixin (erp5.component.mixin) and Interfa… · e84d2b51
      …ce (erp5.component.interface).
      
      * One Mixin/Interface class per ZODB Component.
        => Already the case for FS Mixin, not for Interfaces.
      * ZODB Components module name ('reference' property) and class name:
        + Mixin: FooMixin.
        + Interface: IFoo.
      
      Rationale:
        + Avoid current FS hacks: registry (Mixins, mixin_class_registry) or import
          all classes explicitly in __init__.py (Products.ERP5Type.interfaces).
        + Consistent naming.
        + Consistent with ZODB Documents Components.
      
      Also, modify pylint checker to handle Zope Interfaces:
        + E: 4, 0: Inheriting 'Interface', which is not a class. (inherit-non-class)
        + E: 5, 2: Method has no argument (no-method-argument)
      Arnaud Fontaine committed
  17. 11 Feb, 2019 2 commits