1. 09 Mar, 2018 3 commits
    • Vincent Pelletier's avatar
      erp5_web: Do not mention immediateReindexObject. · eeec7f6a
      Vincent Pelletier authored
      This method must not be used, so do not mention it in an example script.
      eeec7f6a
    • Vincent Pelletier's avatar
    • Vincent Pelletier's avatar
      erp5_authentication_policy: Do not cache password expiration state. · 15730c94
      Vincent Pelletier authored
      Caching in authentication-related work is not a good idea.
      Also, simplify the resulting script:
      - do not load Password Event from ZODB, just use the creation_date found by
        catalog
      - reorder accesses to only do them when they are needed (ex: preferences)
      - factorise access to persistent objects (portal_preferences)
      - fix coding style: space after comma, no space around named-argument equal
        signs, 2-spaces indentation, spaces around multiplication and division
        operators, upper-case pseudo-constant
      - factorise now vs. expire_date comparison, getting rid of the mishandled
        "now == expire_date" edge case in original code
      - remove commented-out code and obvious comments
      - DateTime is already implicitly bound in any script's globals, no need to
        explicitly import it.
      In turn, this allows removing immediate reindexation on corresponding scripts,
      as immediate reindexation will be disallowed for restricted python.
      15730c94
  2. 08 Mar, 2018 5 commits
  3. 07 Mar, 2018 3 commits
  4. 06 Mar, 2018 6 commits
  5. 05 Mar, 2018 7 commits
  6. 02 Mar, 2018 6 commits
  7. 01 Mar, 2018 2 commits
  8. 28 Feb, 2018 7 commits
  9. 27 Feb, 2018 1 commit