An error occurred fetching the project authors.
  1. 28 Nov, 2022 1 commit
  2. 18 Aug, 2022 1 commit
  3. 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
  4. 24 Mar, 2022 1 commit
    • Julien Muchembled's avatar
      ERP55Form: drop a broken proxy field cache · 25ad9ece
      Julien Muchembled authored
      When rendering a proxy field, 3 different fields can come in play:
      1. the field to be rendered
      3. the template field (i.e. not a proxy field) that knows how to render
      2. possibly an intermediate proxy field that contains the value to render
      
      What's difficult when rendering a proxy field is to take the above 3 fields
      into account and this commit does it by creating a temporary field:
      1. 'field' variable in TALES
      2. the value
      3. the code
      
      Before this commit, 1 could be wrong.
      25ad9ece
  5. 28 Feb, 2022 1 commit
    • Arnaud Fontaine's avatar
      zope4: ZPublisher.mapply uses `__code__` instead of `func_code` (Zope: 740eb601). · e742659e
      Arnaud Fontaine authored
      Also, `__code__` has been introduced in Python 2.6 (for forwards compatibility
      with Python 3) as an alias to func_code which has been completely removed in
      Python 3.
      
      This fixes testFunctionalCore failures:
        [...]
          Module ZPublisher.mapply, line 53, in mapply
            code = f.__code__
        AttributeError: 'DefaultGetter' object has no attribute '__code__'
      e742659e
  6. 29 Apr, 2021 1 commit
  7. 29 Jan, 2021 1 commit
    • Jérome Perrin's avatar
      ERP5Form: implement a basic checkConsistency for ProxyField · 459093f3
      Jérome Perrin authored
      For now this only checks that every entries in .tales are also in .values
      so that .has_value works as expected. This also supports repairing the
      structures with fixit argument.
      
      We could check more, because there are other problems with proxy fields
      internal structures:
       - sometimes some keys are in .values / .tales but not in .delegated_list
         this seem to happen after changing the target to a field of a different
         type, with different keys.
       - .delegated_list are not always sorted
      459093f3
  8. 14 Feb, 2020 1 commit
  9. 22 Sep, 2017 1 commit
  10. 31 May, 2016 1 commit
  11. 30 May, 2016 1 commit
  12. 12 Jan, 2016 1 commit
  13. 18 Sep, 2015 1 commit
  14. 04 Sep, 2014 1 commit
  15. 06 Feb, 2014 1 commit
  16. 28 Oct, 2013 1 commit
  17. 21 May, 2013 1 commit
  18. 15 Dec, 2010 1 commit
  19. 05 Nov, 2010 1 commit
  20. 17 Sep, 2010 1 commit
  21. 14 Sep, 2010 1 commit
  22. 15 Jul, 2010 1 commit
    • Sebastien Robin's avatar
      sync with trunk@37114 · c1ae57b0
      Sebastien Robin authored
      Conflicts:
      	bt5/erp5_base/bt/revision
      	bt5/erp5_simulation/DocumentTemplateItem/InvoiceSimulationRule.py
      	bt5/erp5_simulation/bt/revision
      	bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/Base_viewTradeFieldLibrary.xml
      	bt5/erp5_trade/bt/change_log
      	bt5/erp5_trade/bt/revision
      	products/ERP5/Document/BusinessPath.py
      	products/ERP5/Document/SimulationMovement.py
      	products/ERP5/Document/TradeCondition.py
      	products/ERP5/Document/TradeModelLine.py
      	products/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision
      	products/ERP5Type/ERP5Type.py
      
      git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37129 20353a03-c40f-0410-a6d1-a30d3c3de9de
      c1ae57b0
  23. 31 May, 2010 1 commit
  24. 19 May, 2010 1 commit
  25. 16 Mar, 2010 1 commit
  26. 11 Mar, 2010 2 commits
  27. 19 Feb, 2010 1 commit
  28. 24 Nov, 2009 1 commit
    • Romain Courteaud's avatar
      Allow to: · 389479a0
      Romain Courteaud authored
       - explicitely define the skin folder in the proxy field's form ID field.
       - surcharge a field library for a custom project by only putting inside
         the modified fields. Untouched field can be left inside standard
         field library.
      
      
      git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30848 20353a03-c40f-0410-a6d1-a30d3c3de9de
      389479a0
  29. 07 Oct, 2009 1 commit
  30. 28 Aug, 2009 1 commit
  31. 18 May, 2009 1 commit
  32. 19 Feb, 2009 1 commit
  33. 25 Sep, 2008 2 commits
  34. 24 Sep, 2008 1 commit
  35. 23 Sep, 2008 1 commit
  36. 28 Jul, 2008 2 commits
  37. 26 Jun, 2008 1 commit