1. 22 Jul, 2019 1 commit
    • Ivan Tyagov's avatar
      Fix an use case of a renderjs site under the context of an anonymous user. · 58bc0f8c
      Ivan Tyagov authored
      What happens is that in same script (line 907) we want to calculateHateos for
      restricted case without passing (I consider explict decision) the response.
      What happens is that script will try to redirect to login form using non existing
      response parameter. So fix is redirect ONLY if we do pass response.
      This allows a Web Site to work with Anonymous accessible content.
      
      @romain  and / or @rporchetto  please feel free to contact me so I show my use case with a real example.
      
      /reviewed-on nexedi/erp5!905
      58bc0f8c
  2. 19 Jul, 2019 1 commit
  3. 18 Jul, 2019 5 commits
  4. 17 Jul, 2019 9 commits
  5. 15 Jul, 2019 2 commits
    • Arnaud Fontaine's avatar
      erp5_simulation_fast_input: Solve Divergences dialog: Display all divergences... · 184762cc
      Arnaud Fontaine authored
      erp5_simulation_fast_input: Solve Divergences dialog: Display all divergences in a single ListBox page.
      
      This dialog and its JS gadget does not handle multiple pages ListBox (because
      gadget_solve_divergence_dialog.js assumes that the view is the last part of
      the URL) and this is not actually needed (customer seldom goes over the
      previous limit to 20 anyway).
      
      How to reproduce:
        1. Create >20 divergences (20 lines per page used to be displayed).
        2. Go to Solve Divergences dialog:
           => gadget_solve_divergence_dialog.js:
              -> location.pathname == /erp5/purchase_order_module/42/Delivery_solveDivergenceAction.
                 -> basedir=/erp5/purchase_order_module/42.
                    => /erp5/purchase_order_module/42/Delivery_getSolveDivergenceDialogParameterFormBox XHR'ed: OK.
        3. Go to any other ListBox page:
           => gadget_solve_divergence_dialog.js:
              -> location.pathname == /erp5/purchase_order_module/42.
                 -> basedir=/erp5/purchase_order_module.
                    =>/erp5/purchase_order_module/Delivery_getSolveDivergenceDialogParameterFormBox XHR'ed: NOK:
                       [...]
                         Module script, line 4, in Delivery_getSolveDivergenceDialogParameterFormBox
                           - <PythonScript at /erp5/Delivery_getSolveDivergenceDialogParameterFormBox used for /erp5/purchase_order_module>
                           - Line 4
                           solver_process = context.getSolverValueList()[-1]
                       AttributeError: getSolverValueList
      184762cc
    • Arnaud Fontaine's avatar
      erp5_simulation_fast_input: Solve Divergences dialog: Handle error when... · 570a689d
      Arnaud Fontaine authored
      erp5_simulation_fast_input: Solve Divergences dialog: Handle error when XHR'ing Solver configuration fails.
      
      When user clicks on the radio button to Accept Decision for example,
      Delivery_getSolveDivergenceDialogParameterFormBox is called (XHR) and when it
      failed, the 'Solve Divergences' button was disappearing and nothing was
      displayed to end-user.
      570a689d
  6. 10 Jul, 2019 1 commit
    • Arnaud Fontaine's avatar
      erp5_ace_editor: Removed. · 94a179a6
      Arnaud Fontaine authored
      * Not updated for many years (CodeMirror has since replaced it).
      * There are now 2 other better source code editors (CodeMirror and Monaco).
      94a179a6
  7. 09 Jul, 2019 1 commit
  8. 08 Jul, 2019 2 commits
  9. 05 Jul, 2019 2 commits
  10. 04 Jul, 2019 9 commits
  11. 02 Jul, 2019 1 commit
  12. 01 Jul, 2019 6 commits