1. 23 Nov, 2021 10 commits
  2. 22 Nov, 2021 1 commit
  3. 19 Nov, 2021 2 commits
  4. 18 Nov, 2021 1 commit
    • Xiaowu Zhang's avatar
      product/Workflow&erp5_workflow_test: fix can't access workflow state after change State Variable · 37fbef7d
      Xiaowu Zhang authored
      we have such error:
      ....
      if context.getValidationState() in ["draft", "deleted", "cancelled", "archived"]:
        Module Products.ERP5Type.Accessor.WorkflowState, line 60, in __call__
          return wf._getWorkflowStateOf(instance, id_only=1)
        Module Products.ERP5Type.Core.Workflow, line 609, in _getWorkflowStateOf
          state_id = 'state_' + status.get(self.getStateVariable(), None)
      TypeError: cannot concatenate 'str' and 'NoneType' objects
      37fbef7d
  5. 17 Nov, 2021 2 commits
  6. 16 Nov, 2021 1 commit
  7. 15 Nov, 2021 1 commit
  8. 12 Nov, 2021 2 commits
  9. 10 Nov, 2021 1 commit
  10. 09 Nov, 2021 4 commits
  11. 08 Nov, 2021 2 commits
  12. 04 Nov, 2021 3 commits
  13. 02 Nov, 2021 1 commit
  14. 27 Oct, 2021 1 commit
  15. 26 Oct, 2021 4 commits
  16. 25 Oct, 2021 1 commit
  17. 22 Oct, 2021 3 commits
    • Jérome Perrin's avatar
      core: Extend Category import with an option to force deletion of categories in use · 78cf1c94
      Jérome Perrin authored
      Category spreadsheet import did not delete categories if some documents
      where related to these categories. While this may make sense when using
      this import in site with already some data, in many cases, we want to
      be able to delete the categories, so that the result is that the category
      tree match the imported spreadsheet.
      
      This extend the dialog to support a new "force delete" mode that delete
      categories even if they are use, leaving the documents using categories
      with broken relations.
      78cf1c94
    • Vincent Pelletier's avatar
      ERP5Type/patches/WSGIPublisher: Avoid boolean evaluation of foreign object. · 679467c9
      Vincent Pelletier authored
      Spotted when comparing this code with ZPublisher.Publish.
      679467c9
    • Vincent Pelletier's avatar
      ERP5Type/patches/WSGIPublisher: Emulate HTTPResponse.write better. · 68527217
      Vincent Pelletier authored
      Once a response has been written to, the status and headers are supposed
      to have been sent over the network. So any future change to them is moot.
      Likewise, setBody does nothing: only write can continue appending to the
      existing body.
      As in the case of WSGI the response does not actually get sent just yet:
      - lock the body
      - store finalize() result
      Also, make the order in which body and stdout are returned consistent with
      HTTPResponse: body is returned first (as part of HTTPResponse.write's call
      to self.outputBody, which calls self.__str__, which emits body), and then
      stdout content.
      Also, add support for cases whre the existing body is a file or an
      IUnboundStreamIterator.
      68527217