An error occurred fetching the project authors.
  1. 21 Sep, 2022 1 commit
  2. 04 May, 2022 1 commit
    • Arnaud Fontaine's avatar
      py2/py3: Make Products code compatible with both python2 and python3. · a17bb910
      Arnaud Fontaine authored
      Done through various 2to3 fixers (zope.fixers, modernize, future) and manual
      changes. This is a single commit so that we have a clearer picture of how code
      converted with my2to3 should look like.
      
      Except straightforward @implementer decorator 2to3 fixer, only product/ folder
      was considered as the goal was to be able to create an ERP5Site.
      
      * Use @implementer decorator introduced in zope.interface 3.6.0 (2010):
      
        The implements syntax used under Python 2.X does not work under 3.X, since it
        depends on how metaclasses are implemented and this has changed. Instead it
        now supports a decorator syntax (also under Python 2.X).
      
        Applied thanks to 2to3 `zope.fixers` package.
      
      * Use `six.moves` rather than `future` install_aliases() feature because the
        latter use unicode_literals and "wraps" module aliases so that unicode() are
        returned for text rather than str() (Python2 standard library). This notably
        breaks BusinessTemplate code which uses urllib quote() for filesystem paths...
      
      * No more unbound methods in python3 so use six.get_unbound_function().
      
      * dict.(iteritems,iterkeys,itervalues)() => six.\1(dict) thanks to `dict_six`
        2to3 fixer from `modernize`:
        $ python-modernize -w -f dict_six product/
      
      * Manually make sure that dict.{items,values,keys}() returns a real list when it
        is latter modified rather than a dict_{items,values,keys} (ensure_list()). By
        default, 2to3 blindly does list(dict.{items,values,keys}()) which is not
        acceptable from performances point of view. With my2to3, this will be possible
        to handle such case automatically.
      
      * Replace cStringIO.StringIO() by six.moves.cStringIO() (a module alias for
        cStringIO.StringIO() on py2 and io.StringIO() on py3).
      
      * Use six.text_type which maps to unicode() on py2 and str() on py3. This also
        makes a clearer difference between text and binary strings.
      
      * Replace map()/filter() with lambda function by list comprehension (this has
        the benefit to avoid casting to list for py3 as it returns iterators).
      a17bb910
  3. 29 Apr, 2021 1 commit
  4. 16 Sep, 2020 1 commit
  5. 07 May, 2020 1 commit
  6. 30 Sep, 2019 1 commit
  7. 29 Apr, 2019 1 commit
  8. 03 Oct, 2017 1 commit
  9. 11 Sep, 2017 1 commit
  10. 06 Jan, 2017 1 commit
    • 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
  11. 23 Dec, 2016 1 commit
  12. 22 Jun, 2016 1 commit
  13. 09 Jun, 2016 1 commit
  14. 08 Jun, 2016 1 commit
  15. 19 Oct, 2015 1 commit
  16. 17 Feb, 2015 1 commit
  17. 02 Feb, 2015 1 commit
  18. 31 Dec, 2014 1 commit
  19. 12 Dec, 2014 1 commit
  20. 06 Nov, 2014 1 commit
  21. 16 Oct, 2014 2 commits
  22. 30 Jan, 2014 1 commit
  23. 13 Sep, 2013 3 commits
  24. 16 Aug, 2013 1 commit
  25. 09 Apr, 2013 1 commit
    • Jérome Perrin's avatar
      Inventory API: remove unecessary joins in the queries · c528eb90
      Jérome Perrin authored
      We were joining catalog for section, node and resource, mainly in order to
      expose _title and _relative_url in brains. We just need to select the
      corresponding uids and let brains do another catalog search to get the object
      when accessed.
      Note that erp5_banking_core is not updated
      c528eb90
  26. 01 Mar, 2013 1 commit
  27. 28 Feb, 2013 1 commit
  28. 26 Feb, 2013 1 commit
    • Aurel's avatar
      Implement cache of getInventory results · cf53db45
      Aurel authored
      Create a sql cache for getInventory call
      Remove full-inventory optimisation as it now useless
      Implement full-inventory feature directly into stock
      Make erp5_pdm depends on this optimisation
      Install optimisation for all unit tests
      cf53db45
  29. 21 Feb, 2013 6 commits
  30. 26 Jul, 2012 2 commits
  31. 25 Jul, 2012 1 commit