Commit e9c6067b authored by Jérome Perrin's avatar Jérome Perrin

core_test: fix UserFolder import

parent 6bca5348
...@@ -18,7 +18,7 @@ import urllib ...@@ -18,7 +18,7 @@ import urllib
from OFS.DTMLMethod import DTMLMethod from OFS.DTMLMethod import DTMLMethod
from OFS.Folder import Folder from OFS.Folder import Folder
from AccessControl.users import UserFolder from AccessControl.userfolder import UserFolder
from Products.CMFCore.CookieCrumbler import CookieCrumbler from Products.CMFCore.CookieCrumbler import CookieCrumbler
from Products.CMFCore.tests.test_CookieCrumbler import makerequest from Products.CMFCore.tests.test_CookieCrumbler import makerequest
......
  • @kazuhiko I tried this (it's not on master) as fixup for the test failure introduced in 6bca5348 and it does not seem OK https://erp5js.nexedi.net/#/test_result_module/20240308-29688736/68 . Do you want to check ? I don't see what's wrong

  • oops maybe I replaced too brutally. UserFolder should be here :

    <portal_components/test.erp5.testCookieCrumbler>:25: DeprecationWarning: UserFolder is deprecated. The standard Zope user folder implementation has moved to OFS.userfolder. Please depend on Zope and import from OFS.userfolder or use the new minimal user folder classes from AccessControl.userfolder. This backward compatibility shim will be removed in AccessControl version 6.

  • Fixed in 7a0d354c

  • Thanks !

Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment