1. 28 Feb, 2020 1 commit
    • Vincent Pelletier's avatar
      ERP5Type.Core.Folder.Folder: Inherit from our classes first. · 133d6655
      Vincent Pelletier authored
      Allows Base to consistently override methods which are also overridden in
      CMF where CMF implementation does not propagate the call to other
      superclasses (ex: __before_publishing_traverse__ as of CMFCore-2.2.10).
      Also allows simplifying several inheritance fixups.
      Also, use super() instead of explicit resolution to Base.
      
      Also: testBusinessTemplate: drop dead monkey-patch.
      _getCopy is called during BusinessTemplate installation, but not the one
      on this class. Which prevents reordering class inheritance between
      SimpleItem and copy support classes.
      So this is dead code which is not even explaining what it is trying to do
      (ex: what document should it really not be called on ? what effect of this
      method is undesired ? why is the method attached to this class ? why is
      the cleanup restoring the original method, when this class does not have
      this method to begin with but it merely gets it from its superclasses
      which are re-inherited from by documents hence overriding it anyway ?,
      and it is getting in the way of reordering class inheritance so it goes
      away.
      
      Also: ERP5Type.patches.CMFBTreeFolder: Fold patch onto ERP5Type.Core.Folder.
      All ERP5UI-visible (hence needing to call allowedContentTypes) BTReeFolder2
      instances should already inherit ERP5Type.Core.Folder, removing the need
      for this monkey-patch.
      133d6655
  2. 27 Feb, 2020 5 commits
  3. 26 Feb, 2020 5 commits
  4. 25 Feb, 2020 4 commits
  5. 21 Feb, 2020 1 commit
    • Vincent Pelletier's avatar
      ERP5Type.patches.User: Scope role cache per user id. · 0b4fe995
      Vincent Pelletier authored
      When running test.erp5.testHalJsonStyle live tests, the same transaction
      seems to be seeing two different users. This cause an incorrect cache hit
      with the second user, which then retrieves values computed by & for the
      first user.
      Fix this by scoping the cache by user id, causing different cache entries
      to be used.
      0b4fe995
  6. 20 Feb, 2020 8 commits
  7. 19 Feb, 2020 9 commits
  8. 18 Feb, 2020 4 commits
  9. 17 Feb, 2020 3 commits