1. 26 Sep, 2024 1 commit
    • Jérome Perrin's avatar
      core: fix Flags not at the start of the expression warnings with new mimetypes_registry · b819f8da
      Jérome Perrin authored
      This is follow up of commit 0000dee0 (erp5_core: update
      mimetypes_registry with shared-mime-info_2.4-5 and media-types_10.1.0.,
      2024-09-17), after this change, Products.MimetypesRegistry build regular
      expressions with fnmatch.translate, which on python2 produces regular
      expressions like:
      
           >>> fnmatch.translate('*.aaa')
           '.*\\.aaa\\Z(?ms)
      
      such expressions cause a warning in python3:
      
          >>> re.compile('.*\\.aaa\\Z(?ms)')
          ...
          re.error: global flags not at the start of the expression at position 9
      
      Running this on python3 would be incompatible with python2, because
      `fnmatch.translate` on python3 generates regular expressions that are not
      valid on python2.
      
      To solve this mimetypes_registry.xml was edited by hand to move the
      flags at the beginning, replacing for example '.*\\.aaa\\Z(?ms)' by
      '(?ms).*\\.aaa\\Z'
      b819f8da
  2. 25 Sep, 2024 1 commit
  3. 24 Sep, 2024 3 commits
  4. 23 Sep, 2024 12 commits
  5. 20 Sep, 2024 1 commit
  6. 19 Sep, 2024 4 commits
  7. 18 Sep, 2024 3 commits
  8. 17 Sep, 2024 11 commits
  9. 16 Sep, 2024 1 commit
    • Romain Courteaud's avatar
      erp5_hal_json_style/erp5_web: fix http cache condition · bcd82831
      Romain Courteaud authored
      The main query to the hateoas web section must be cache by the browser,
      to reduce the number of queries by 2.
      
      Caching policy manager conditions are checked before calculating the query result,
      and so, it is not possible anymore to wait for the script to explicitely
      ask for the result to be cached.
      bcd82831
  10. 10 Sep, 2024 3 commits