1. 19 Mar, 2021 3 commits
    • Jérome Perrin's avatar
      CMFActivity: Always set zope.globalrequest WIP · 40b795c7
      Jérome Perrin authored
      ERP5 uses a mix of context.REQUEST and Products.ERP5Type.Global.get_request(),
      which now uses zope.globalrequest.getRequest().
      CMFActivity reconstruct the original request before executing activity, so that
      the activity is executed with a request equivalent to the request at the time
      where the method was activated. For this, context.REQUEST was properly restored,
      but get_request()/globalrequest was only restored when the REQUEST had some
      ACCEPT_LANGUAGE header, so that it replays the language negociation for
      Localizer.
      With browser requests, I guess every browser pass an ACCEPT_LANGUAGE header,
      but within unit tests such header is not present.
      
      (TODO: finish this message)
      40b795c7
    • Jérome Perrin's avatar
      deferred_style: Properly keep request parameters · d837fc62
      Jérome Perrin authored
      When rendering reports, deferred style was only keeping request.other, but
      some places, like Products.ERP5Form.ListBox.ListBox.getParamDict read only in
      request.form, which caused different behaviours when rendering reports
      directly or in activities, because when rendering in activities request keys
      that the report dialog might have pushed were not preset in request. They
      were of course present when rendering the report directly, because this was
      the same request, so this lead to different behaviours wether reports were
      rendering in activities or directly, like we could observe in 7058ab6f
      (accounting: fix grouping option of GL when running in deferred mode, 2021-02-25)
      
      This change deferred style to properly propagate request.other and
      request.form in all activities of reports.
      d837fc62
    • Jérome Perrin's avatar
      deferred_style: alarm to automate report production · 902b0ce5
      Jérome Perrin authored
      See Alarm_generateReportDocumentList for the full API and the test for example
      usage.
      902b0ce5
  2. 12 Mar, 2021 3 commits
  3. 09 Mar, 2021 12 commits
  4. 15 Feb, 2021 4 commits
  5. 09 Feb, 2021 18 commits