1. 06 Jan, 2017 2 commits
    • Vincent Pelletier's avatar
      CMFCategory: Do not index any Base Category as a related document. · 95e3eaec
      Vincent Pelletier authored
      Without this change, "source/a/b" in non-strict mode indexes:
        (document.uid, source.uid, b.uid, 1)
        (document.uid, source.uid, a.uid, 0)
        (document.uid, source.uid, source.uid, 0)
      This last line does not contain anything which cannot be found by looking
      at the base category uid column, so it is wasting disk (and index) space,
      costing performance.
      But keep indexing a Base Category document if is it not the base category
      for considered relation. It is not clear whether stopping indexation at the
      first encountered Base Category document is intentional, or if recursion
      should only stop when reaching the base category of considered relation.
      With this change, "source/a/b" in non-strict mode indexes:
        (document.uid, source.uid, b.uid, 1)
        (document.uid, source.uid, a.uid, 0)
      removing the redundancy.
      95e3eaec
    • Vincent Pelletier's avatar
      CMFCategory.CategoryTool: Stop using selection_{report,domain} · 2b20a1d8
      Vincent Pelletier authored
      It is overkill, and is likely slower than just passing the needed
      values straight to catalog.
      Also, rely on duck-typing instad of portal-type-testing.
      Also, drop unused "spec" and "filter" arguments.
      Also, expose strict{,_membership} used arguments, simplifying code.
      Keep catchall **kw for compatibility.
      2b20a1d8
  2. 26 Dec, 2016 3 commits
  3. 21 Dec, 2016 3 commits
  4. 01 Dec, 2016 1 commit
    • Sebastien Robin's avatar
      CMFCategory: review usage of current_category and rename it current_category_list · 5e44e178
      Sebastien Robin authored
      Since the beginning, there was in getCategoryChildItemList Renderer
      API the possibility to pass a parameter 'current_category'. The idea
      was to allow displaying a category which is not part of what the item
      list will return (typically, if you expire a category, and if you check
      permission, the category will not be in item list any more).
      
      But the way it was implemented was too inconvenient and it looks never
      used. So improve several things:
      - possibility to pass multiple categories for multi value cases
      - reuse renderer to render current categories instead of just reinjecting
        the url (which is not user friendly)
      - implement handling of current_category_list in getCategoryChildItemList
        to allow caching the result of the Renderer. The only part which is not
        cached is the rendering of current categories.
      
      /reviewed-on !201
      5e44e178
  5. 13 Jun, 2016 1 commit
  6. 05 May, 2016 1 commit
  7. 29 Apr, 2016 1 commit
    • Julien Muchembled's avatar
      Small optimizations · e140c3f8
      Julien Muchembled authored
      About getSingleCategoryAcquiredMembershipList, getPhysicalPath is so slow that
      that cache was useless.
      e140c3f8
  8. 12 Jan, 2016 1 commit
  9. 07 Apr, 2015 1 commit
  10. 23 Mar, 2015 1 commit
  11. 04 Sep, 2014 1 commit
  12. 10 Apr, 2014 1 commit
  13. 30 Jan, 2014 1 commit
  14. 13 Aug, 2013 1 commit
  15. 17 Jun, 2013 1 commit
  16. 30 Jan, 2013 1 commit
  17. 25 Jan, 2013 8 commits
  18. 11 May, 2012 1 commit
  19. 20 Mar, 2012 1 commit
  20. 14 Mar, 2012 1 commit
  21. 17 Oct, 2011 1 commit
    • Julien Muchembled's avatar
      Drop support for Zope 2.8 · 48212534
      Julien Muchembled authored
      Checked following occurrences in comments:
      - "Python 2.[456]"
      - "Zope 2.[891]"
      - "BBB"
      - "BACK"
      
      Checked uses of:
      - email, hashlib, numpy & tarfile (modules)
      - ImportError
      - string.Template
      - suppress_events (parameter of _setObject)
      
      Excluded:
      - some forked modules (MailTemplates, PortalTransforms...)
      - some i18n compatibility code
      48212534
  22. 16 May, 2011 1 commit
  23. 03 May, 2011 1 commit
  24. 19 Apr, 2011 2 commits
  25. 02 Mar, 2011 1 commit
  26. 24 Feb, 2011 1 commit
  27. 03 Feb, 2011 1 commit