1. 13 Oct, 2022 2 commits
    • Jérome Perrin's avatar
      ERP5TypeTestCase: stop copying ZopeTestCase's publish implementation · 8d81b128
      Jérome Perrin authored
      Call the original method instead of copy/pasting the code
      
      The original method will use .encode() on the basic= argument, so it
      needs to be an ascii str or an unicode on python2, we had to change
      some callers to pass basic= as text, to prevent:
      
           File "eggs/Zope-4.5.3+slapospatched001-py2.7.egg/Testing/ZopeTestCase/functional.py", line 43, in wrapped_func
             return func(*args, **kw)
           File "eggs/Zope-4.5.3+slapospatched001-py2.7.egg/Testing/ZopeTestCase/functional.py", line 93, in publish
             env['HTTP_AUTHORIZATION'] = basic_auth_encode(basic)
           File "eggs/Zope-4.5.3+slapospatched001-py2.7.egg/ZPublisher/utils.py", line 91, in basic_auth_encode
             header = b'Basic ' + base64.b64encode(value.encode('latin-1'))
         UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)
      8d81b128
    • Jérome Perrin's avatar
  2. 12 Oct, 2022 2 commits
  3. 11 Oct, 2022 2 commits
  4. 08 Oct, 2022 1 commit
  5. 07 Oct, 2022 2 commits
  6. 06 Oct, 2022 4 commits
  7. 05 Oct, 2022 15 commits
  8. 04 Oct, 2022 2 commits
  9. 01 Oct, 2022 5 commits
  10. 30 Sep, 2022 5 commits