An error occurred fetching the project authors.
  1. 21 Aug, 2023 2 commits
  2. 03 Mar, 2023 1 commit
  3. 19 Dec, 2022 1 commit
    • Jérome Perrin's avatar
      *: rewrite with lib2to3.fixes.fix_asserts and ad-hoc assertin · 2e366054
      Jérome Perrin authored
      The add-hoc assertin filter:
      
      --
      
      from typing import List
      
      import lib2to3
      
      from lib2to3.fixer_base import BaseFix
      from lib2to3.fixer_util import Comma, Name
      
      class FixAssertIn(BaseFix):
      
        PATTERN = """
            power< any+ trailer< '.' meth=("assertTrue" | "assertFalse")>
            trailer< '('
              comparison< (needle=any ( comp_op<'not' 'in'> | 'in' ) haystack=any) >
            ')' > >
        """
      
        def transform(self, node: lib2to3.pytree.Node,
                      results: List[lib2to3.pytree.Base]):
      
          needle = results['needle']
          haystack = results['haystack']
          meth = results["meth"][0]
      
          method_map = {True: 'assertIn', False: 'assertNotIn'}
          method_in = meth.value == 'assertTrue'
          if 'not' in str(needle.parent.children[1]):
            method_in = not method_in
          meth.replace(Name(method_map[method_in], prefix=meth.prefix))
      
          needle.parent.children = [needle, Comma(), haystack]
      2e366054
  4. 02 Aug, 2021 1 commit
    • Jérome Perrin's avatar
      odt_style: Fix hierarchy of ReportSection(title=) · 1e82948c
      Jérome Perrin authored
      When using report sections with title, this is supposed to create outline
      in PDF, but this seem to became broken somewhere in the last 10 years.
      
      This repair by using text:h instead of text:p and by setting
      text:outline-level
      1e82948c
  5. 20 Jul, 2020 1 commit
    • Jérome Perrin's avatar
      ERP5OOo: don't fail exporting documents with control character · e4e12259
      Jérome Perrin authored
      if for some reason an ERP5 document has some control characters in title of
      description and is exported in ODS/ODT, the export will fail with an etree
      error like this:
      
          Exception:
            Module Products.CMFActivity.ActivityTool, line 356, in __call__
                result = method(*self.args, **self.kw)
            Module Products.ERP5Type.patches.PythonScript, line 179, in __call__
                return self._orig_bindAndExec(args, kw, None)
            Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
                return self._exec(bound_data, args, kw)
            Module Products.PythonScripts.PythonScript, line 344, in _exec
                result = f(*args, **kw)
            Module script, line 15, in Base_renderSimpleView
            - <PythonScript at /erp5/Base_renderSimpleView used for /erp5/sale_packing_list_module>
            - Line 15
                report_data = getattr(context, deferred_style_dialog_method)(**params)
            Module AccessControl.ZopeGuards, line 369, in guarded_apply
                return builtin_guarded_apply(func, args, kws)
            Module AccessControl.ZopeGuards, line 391, in builtin_guarded_apply
                return func(*arglist, **argdict)
            Module Products.ERP5Form.Form, line 705, in __call__
                return pt.pt_render(extra_context=extra_context)
            Module Products.ERP5OOo.OOoTemplate, line 484, in pt_render
                extra_context, request)
            Module Products.ERP5OOo.OOoTemplate, line 422, in renderIncludes
                xml_doc = etree.XML(text)
            Module lxml.etree, line 3192, in lxml.etree.XML (src/lxml/lxml.etree.c:78763)
            Module lxml.etree, line 1848, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:118341)
            Module lxml.etree, line 1736, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:117021)
            Module lxml.etree, line 1102, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:111265)
            Module lxml.etree, line 595, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:105109)
            Module lxml.etree, line 706, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:106817)
            Module lxml.etree, line 635, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:105671)
          XMLSyntaxError: PCDATA invalid Char value 20, line 228761, column 21 (line 228761)
      
      This is because XML does not accept the full range of characters, there are a
      few characters that are not allowed.
      
      To prevent these errors, we replace these invalid characters by an error
      character (�) before manipulating the XML with lxml.
      e4e12259
  6. 07 Jul, 2017 1 commit
    • Julien Muchembled's avatar
      tests: clean up code related to configuration of cloudooo/memcached connectors · f84f4cdb
      Julien Muchembled authored
      - The conversion server is supposed to be configured in a system preference,
        so do this instead of using a normal preference.
      - _getConversionServerDict -> _getConversionServerUrl, to make clear that
        cloudooo is now configured by a url, instead of a host/port couple.
      - Refactoring: From the moment where setUpERP5Site() sets up things
        automatically, we don't the "same" duplicated code throughout many test to
        redo cloudooo configuration.
      - In the promise file, the volatile/persistent memcached url were swapped.
      f84f4cdb
  7. 23 Aug, 2016 1 commit
  8. 22 Aug, 2016 1 commit
  9. 08 Jun, 2015 1 commit
  10. 13 Jan, 2015 1 commit
  11. 04 Sep, 2014 1 commit
  12. 30 Jan, 2014 1 commit
  13. 04 Nov, 2013 1 commit
  14. 13 Jun, 2013 1 commit
    • Jérome Perrin's avatar
      Revert 3 latest commits · 228e3f79
      Jérome Perrin authored
      Revert "Test deferred style with converting to a format"
      
      This reverts commit cbfa8d56.
      -> pushed by mistake
      
      Revert "Set cloudoo on preferences in ERP5TypeTestCase"
      
      This reverts commit 28824962.
      -> pushed by mistake
      
      Revert "Listbox from Folder_viewWorkflowActionDialog has hidden columns"
      
      This reverts commit 802d3f53.
      -> a test is failing
      228e3f79
  15. 12 Jun, 2013 1 commit
  16. 05 Apr, 2013 1 commit
  17. 15 May, 2012 1 commit
  18. 11 May, 2012 1 commit
  19. 09 May, 2012 1 commit
  20. 16 Feb, 2011 1 commit
  21. 20 Jan, 2011 1 commit
  22. 05 Jan, 2011 1 commit
  23. 22 Nov, 2010 1 commit
  24. 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
  25. 17 May, 2010 1 commit
  26. 06 May, 2010 1 commit
  27. 05 May, 2010 1 commit
  28. 12 Jan, 2010 1 commit
  29. 30 Dec, 2009 1 commit
  30. 23 Dec, 2009 1 commit
  31. 14 May, 2009 1 commit
  32. 06 Mar, 2009 1 commit
  33. 17 Mar, 2008 1 commit
  34. 13 Mar, 2008 1 commit
  35. 19 Feb, 2008 1 commit
  36. 05 Feb, 2008 1 commit
  37. 17 Oct, 2007 1 commit
  38. 15 Oct, 2007 1 commit
  39. 02 Oct, 2007 1 commit