1. 02 Jun, 2017 4 commits
    • Jérome Perrin's avatar
    • Jérome Perrin's avatar
      base: Person_createUserPreference must now return the created preference · bb0cf2e5
      Jérome Perrin authored
      This changes API on a script that some projects have customized, but
      getActiveUserPreferecnce "should work" even with an old script not
      returning preferences.
      
      In that case, first call to getActiveUserPreference will create
      preference but not return it, but next time getActiveUserPreference is
      called, the preference will probably be indexed and will be returned.
      bb0cf2e5
    • Jérome Perrin's avatar
      PreferenceTool: introduce a new getActiveUserPreference method · c178b782
      Jérome Perrin authored
      This method creates a user preference if no preference exists.
      c178b782
    • Jérome Perrin's avatar
      base: drop person_interaction_workflow · 8e6c3ffe
      Jérome Perrin authored
      We do not need to pre-create user preferences, especially that creating
      them too early creates one preferences for each person created in person
      module and does not allow Person_createUserPreference to create
      preference based on person's assignments are they are not created yet.
      
      We do not need to clear cache when deleting user logins anymore. This
      problem was fixed differently.
      
      Adjust tests that was relying on cache being cleared when persons ar
      deleted:
      
      testERP5Web.TestERP5Web.test_15_Check_LastModified_Header was never
      isolated from test_14.
      
      test_14 was filling Base_getWebDocumentDrivenModificationDate cache and
      this cache got clear when the persons where being deleted during
      tearDown. When removing this interaction clearing cache, we revealed
      this weakness. Choosen solution was to clear cache before checking
      response headers, to make sure we don't get something filled by a
      previous test.
      8e6c3ffe
  2. 11 May, 2017 3 commits
  3. 09 May, 2017 1 commit
  4. 02 May, 2017 32 commits