An error occurred fetching the project authors.
  1. 17 Jul, 2024 1 commit
    • Arnaud Fontaine's avatar
      py2/py3: Fix __import__ fromlist argument. · 73c73960
      Arnaud Fontaine authored
      __import__ `fromlist` argument was wrong. It was working anyway with Python2 but
      not anymore with Python3, raising a `ModuleNotFoundError` exception. According
      to Python `__import__(name, globals, locals, fromlist)` documentation:
      
        When the `name` variable is of the form `package.module`, normally, the
        top-level package (the `name` up till the first dot) is returned, *not* the
        module named by `name`. However, when a non-empty `fromlist` argument is
        given, the module named by `name` is returned.
      
      Thus, the following patterns were wrong:
        * __import__(MODULE_NAME, globals(), locals(), MODULE_NAME)
          => Iterate through each character of MODULE_NAME as fromlist is expected to
             be a list/tuple.
        * __import__(MODULE_NAME, globals(), locals(), [MODULE_NAME])
          => This works but actually tries to import MODULE_NAME object from
             MODULE_NAME module (no error if it cannot).
      
      The goal of such __import__ calls were for __import__ to return the right-end
      module instead of the top-level package. In such case, `fromlist=['']` is the
      way to go as it __import__ does not check if the object exists in the module if
      it's an empty string. However, it is even better and easier to read to use
      importlib.import_module() for that...
      
      Also, add `from __future__ import absolute_import` because python2 tries both
      relative and absolute import (level=-1 __import__ parameter) whereas python3
      does absolute import by default (level=0).
      Co-authored-by: Kazuhiko Shiozaki's avatarKazuhiko SHIOZAKI <kazuhiko@nexedi.com>
      73c73960
  2. 05 Mar, 2024 1 commit
    • Jérome Perrin's avatar
      syncml: use cutXML with str, not bytes · 84066b27
      Jérome Perrin authored
      When cutting with bytes, we might cut in the middle of a multi-bytes
      character and later decoding it would cause an error. We could switch
      to sending bytes encoded to base64, because the limit would be more
      natural to be number of bytes, but just decoding and cutting the string
      is easier and in practice not so different.
      
      This bug was revealed by testERP5SyncML.TestERP5SyncML.test_28_PartialData
      with PYTHONHASHSEED 872 and test_28_PartialData with PYTHONHASHSEED 238
      ( on python2 )
      84066b27
  3. 31 Jan, 2024 2 commits
    • Jérome Perrin's avatar
      syncml: fix issues raised by coding style test · b8d1eaa5
      Jérome Perrin authored
      Rename SQLCatalog_indexSyncMLDocumentList to ERP5Site_indexSyncMLDocumentList
      
      Rename SyncMLDocument_updateURLToCurrentSite to SyncMLSubscription_updateURLToCurrentSite
      
      Rename SyncML_searchFolder to SyncMLSubscription_searchFolder
      
      Rename SynchronizationTool_viewPointFixe to SynchronizationTool_viewPointFixeDialog
      b8d1eaa5
    • Jérome Perrin's avatar
      syncml: support python3 · 20afa613
      Jérome Perrin authored
      20afa613
  4. 29 Apr, 2021 1 commit
  5. 02 Jul, 2020 1 commit
  6. 04 Jun, 2014 1 commit
  7. 20 Mar, 2013 1 commit
    • Aurel's avatar
      New ERP5 SyncML implementation · 291fafc5
      Aurel authored
      Complete rewrite of the syncml core engine to make it scallable
      Remaining work :
      - review of conflict management
      - re-implement splitting of big object
      - generic unit test for AsynchronousEngine
      - complete review of default conduit
      - lot of TODO and XXX in the code to check
      291fafc5
  8. 06 Sep, 2011 1 commit
  9. 04 Feb, 2011 1 commit
  10. 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
  11. 06 Jul, 2010 1 commit
  12. 31 May, 2010 7 commits
  13. 08 Apr, 2010 1 commit
  14. 02 Feb, 2010 1 commit
  15. 29 Oct, 2009 2 commits
  16. 28 Oct, 2009 1 commit
  17. 10 Oct, 2009 2 commits
  18. 08 Oct, 2009 3 commits
  19. 30 Sep, 2009 1 commit
  20. 28 Sep, 2009 1 commit
  21. 23 Sep, 2009 1 commit
  22. 03 Aug, 2009 1 commit
  23. 30 Jul, 2009 1 commit
    • Danièle Vanbaelinghem's avatar
      2009-05-15: · f6cfcbfd
      Danièle Vanbaelinghem authored
        Add default Namespace
        Add Conduit for Documents
      2009-05-26:
        Move a getXMLFromObject to be overriden by specialized conduits
        Create PointFixe in the tests
      2009-06-02:
        Split file Subscription.py to create Conflict.py and Signature.py
        Use activities in the test testSyncML
      2009-06-17:
        Create a test for synchronize some documents
      2009-07-10:
        Change the Final of the synchronisation for the synchronisation
        with datas from the Subscription
      
      
      git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28229 20353a03-c40f-0410-a6d1-a30d3c3de9de
      f6cfcbfd
  24. 01 Feb, 2009 1 commit
  25. 29 Jan, 2009 1 commit
  26. 28 Jan, 2009 1 commit
  27. 23 Jan, 2009 1 commit
  28. 21 Jan, 2009 1 commit
  29. 20 Jan, 2009 1 commit