1. 07 Jun, 2019 11 commits
  2. 06 Jun, 2019 7 commits
  3. 05 Jun, 2019 1 commit
  4. 04 Jun, 2019 1 commit
    • Jérome Perrin's avatar
      Updates for xhtml style and gadgets · ce4e546b
      Jérome Perrin authored
      Gadgets:
      
      * Support `changed` flag from `erp5.js`: 
      
      ![unsaved changes sreenshot](/uploads/cff30eae0a5d87df26bac13d43e1da3f/image.png)
      
      * Comply with translation protocol used in ERP5JS. This does not translate, because it would not be easy ( ERP5JS translate client side with a json database of message, but in xhtml style the translation is performed server side with localizer) and not so important now. What matters is just that we can somehow reuse gadgets.
      
      Style:
      
      * While we are at it, fix a minor annoyance that the button in "long" dialogs where not easy to reach, at least on chrome
      
      ![before](/uploads/e03a8311571806a55fd72f6923cf855a/Screenshot_2019-05-31_at_10.38.05.png)
      
      ![after](/uploads/5753bc44fbc0f69b6adfeb14b3367236/Screenshot_2019-05-31_at_10.38.37.png)
      
      /reviewed-on nexedi/erp5!880
      ce4e546b
  5. 03 Jun, 2019 5 commits
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      [erp5_core] Make live test gadget reusable · b22e7b69
      Romain Courteaud authored
      Remove all globals to allow multiple live tests running on the same page.
      Stop reading the test output if the browser tab doesn't have the focus.
      Stop hardcoding the URL in the javascript.
      Stop hardcoding other fields path in the javascript (+ embed the textarea in the gadget).
      
      Propagate all parameters via formulator.
      It will allow to use this gadget from another context document.
      
      Run live test from the RJS UI
      b22e7b69
    • Jérome Perrin's avatar
      xhtml_style: expose methods from interface_translation.html · 56297366
      Jérome Perrin authored
      This way we can use gadgets using of ERP5JS translation API in xhtml
      style.
      This is really minimal compatibility layer and translation is not
      actually performed.
      56297366
    • Vincent Pelletier's avatar
      ImplicitItemMovementModule_viewImplicitItemMovementList: Do not sort by title by default. · 34e4ada5
      Vincent Pelletier authored
      Sorting in a module is terrible for performance as soon as there is more
      than a trivial amount of documents in that module.
      34e4ada5
    • Jérome Perrin's avatar
      testInvalidationBug: update after CMFActivity's node families · ef9fe5da
      Jérome Perrin authored
      Test was failing because family mapping is loaded while connection is
      already closed.
      
      ```
      Traceback (most recent call last):
        File "erp5/Products/ERP5/tests/testInvalidationBug.py", line 156, in testLateInvalidationFromZEO
          activity_tool.tic()
        File "erp5/product/ERP5Type/tests/ProcessingNodeTestCase.py", line 96, in tic
          self._orig_tic(processing_node, force)
        File "erp5/product/CMFActivity/ActivityTool.py", line 1326, in tic
          node_family_id_set = self.getCurrentNodeFamilyIdSet()
        File "erp5/product/CMFActivity/ActivityTool.py", line 921, in getCurrentNodeFamilyIdSet
          return self._getNodeFamilyIdDict().get(getCurrentNode(), ())
        File "ZODB/Connection.py", line 909, in setstate
          self._setstate(obj, oid)
        File "ZODB/Connection.py", line 953, in _setstate
          p, serial = self._storage.load(oid, '')
        File "ZEO/ClientStorage.py", line 825, in load
          result = self.loadBefore(oid, m64)
        File "ZEO/ClientStorage.py", line 839, in loadBefore
          raise ClientDisconnected()
      ClientDisconnected
      ```
      
      Load the object explicitly before so that it's in cache.
      
      /reviewed-on nexedi/erp5!881
      ef9fe5da
  6. 31 May, 2019 5 commits
  7. 29 May, 2019 6 commits
  8. 28 May, 2019 2 commits
  9. 24 May, 2019 2 commits
    • Romain Courteaud's avatar
      [erp5_hal_json_style] Fix listbox pagination · 30b4f89e
      Romain Courteaud authored
      The pagination was not working when using the limit parameter, and when
      the total number of documents is equal to the pagination limit + 1.
      30b4f89e
    • Tatuya Kamada's avatar
      simulation: Test the divergence on Float Equivalence Tester with the epsilon-span by default · 6d17f0a1
      Tatuya Kamada authored
      Before:
         Float Equivalence Tester does not test the divergence even if Divergence Provider is ON
          
      After:
           Float Equivalence Tester test the divergence with the epsilon-span if Divergence Provider is ON
          
      Before, we needed the following condition to test the divergence at Float Equivalence Tester:
          
             "Divergence Provider is ON"  AND
             ("Absolute Tolerance has some value"  OR
              "Relative Tolerance has some value" )
          
      However this default behavior was not consistent with other testers, and
      difficult to notice from the user interface.
      Thus test the divergence by default with the epsilon span which is defined in 
      FloatEquivalenceTester class.
          
      The epsilon-span is the same amount that when we put 0.0 into the ranges.
      The 0.0 has been the configuration of erp5_configurator_standard_trade_template.
      
      /reviewed-on nexedi/erp5!865
      6d17f0a1