1. 03 Apr, 2019 6 commits
    • Jérome Perrin's avatar
      *: refactor with 2to3's ne fixer · 6d0d0fcb
      Jérome Perrin authored
      6d0d0fcb
    • Jérome Perrin's avatar
      *: adjust what 2to3's raise fixer could not handle automatically · 1cb15442
      Jérome Perrin authored
      RefactoringTool: Warnings/messages while refactoring:
      RefactoringTool: ### In file bt5/erp5_accounting_l10n_in/SkinTemplateItem/portal_skins/erp5_accounting_l10n_in/AccountModule_getTrialBalanceReportSectionList.py ###
      RefactoringTool: Line 21: could not convert: raise 'Tree mode no longer supported'
      RefactoringTool: Python 3 does not support string exceptions
      RefactoringTool: ### In file bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_forge/CategoryTool_generateTranslationFile.py ###
      RefactoringTool: Line 27: could not convert: raise 'Redirect', '%s/view?portal_status_message=%s' % (
                               context.portal_categories.absolute_url(),
                               message)
      RefactoringTool: Python 3 does not support string exceptions
      RefactoringTool: ### In file bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/TaskReportModule_exportTaskReportListAsiCalendar.py ###
      RefactoringTool: Line 7: could not convert: raise 'Unauthorized', context
      RefactoringTool: Python 3 does not support string exceptions
      RefactoringTool: ### In file bt5/erp5_tiosafe_core/SkinTemplateItem/portal_skins/erp5_integration/IntegrationCategoryMapping_init.py ###
      RefactoringTool: Line 1: could not convert: raise "yo", context
      RefactoringTool: Python 3 does not support string exceptions
      RefactoringTool: ### In file product/ERP5Configurator/Document/WorkflowSecurityConfiguratorItem.py ###
      RefactoringTool: Line 69: could not convert: raise "NoValidName"
      RefactoringTool: Python 3 does not support string exceptions
      RefactoringTool: ### In file product/ERP5TioSafe/Conduit/AccountingERP5IntegrationConduit.py ###
      RefactoringTool: Line 81: could not convert: raise "getObjectType: ERROR journal code unknow"
      RefactoringTool: Python 3 does not support string exceptions
      RefactoringTool: ### In file product/ERP5TioSafe/tests/testSaleOrderERP5Synchronization.py ###
      RefactoringTool: Line 275: could not convert: raise 'A line has not been checked'
      RefactoringTool: Python 3 does not support string exceptions
      RefactoringTool: Line 376: could not convert: raise 'A line has not been checked'
      RefactoringTool: Python 3 does not support string exceptions
      RefactoringTool: Line 530: could not convert: raise 'A line has not been checked'
      RefactoringTool: Python 3 does not support string exceptions
      RefactoringTool: Line 813: could not convert: raise 'A line has not been checked'
      RefactoringTool: Python 3 does not support string exceptions
      RefactoringTool: Line 915: could not convert: raise 'A line has not been checked'
      RefactoringTool: Python 3 does not support string exceptions
      RefactoringTool: Line 962: could not convert: raise 'The lines must contain VAT, Product or Delivery, nothing else.'
      RefactoringTool: Python 3 does not support string exceptions
      1cb15442
    • Jérome Perrin's avatar
      *: refactor with a modified 2to3's raise fixer · 1c60256f
      Jérome Perrin authored
      The fixer was modified to not rewrite:
      
      raise E, V, T -> raise E(V).with_traceback(T)
      raise E, None, T -> raise E.with_traceback(T)
      
      which is python3 only syntax
      1c60256f
    • Jérome Perrin's avatar
      4e5ad574
    • Jérome Perrin's avatar
      *: refactor with 2to3's except fixer · 646b86bc
      Jérome Perrin authored
      646b86bc
    • Jérome Perrin's avatar
  2. 29 Mar, 2019 1 commit
  3. 28 Mar, 2019 2 commits
  4. 26 Mar, 2019 3 commits
  5. 25 Mar, 2019 2 commits
  6. 22 Mar, 2019 1 commit
  7. 20 Mar, 2019 4 commits
    • Julien Muchembled's avatar
      qa: fix test_getServerAddress (testCMFActivity) · c335c68f
      Julien Muchembled authored
      With recent changes in CMFActivity, getServerAddress is now used
      when setting up the site, before the ZServer is started, which means:
      - getServerAddress memoized a wrong return value;
      - the test didn't fail with --load.
      c335c68f
    • Aurélien Vermylen's avatar
      Clarify "Subscribe/Unsubscribe from Timer Service". · b89e433f
      Aurélien Vermylen authored
      The button "Subscribe/Unsubscribe from Timer Service" does not clearly 
      explain the fact that it determines whether or not Alarms are enabled in
      ERP5. It is very counter-intuitive to see Alarms on "enabled" in the 
      "Configure Alarms" screen and yet not have them being run because the
      Alarm Node is not subscribed to the Timer Service.
      
      /reviewed-on nexedi/erp5!539
      b89e433f
    • Jérome Perrin's avatar
      Fix AccessToken login with ERP5 Login · 601e46e9
      Jérome Perrin authored
      Since the introduction of ERP5 Login, authentication by Access Token is broken, and it is only working if `erp5_login.getReference() == person.getUserId()`
      
      The scriptable part of access token changed, now scripts must return a user object - on which the plugin will call `getUserId` (it was not clear what they should return before, maybe login, but they should return a user id, not a login, as the token plays the same role as a login). To make it clear and to intentionally break compatibility as this is now something different, these scripts have been renamed to be `getUserValue` type based methods.
      
      /reviewed-on nexedi/erp5!838
      601e46e9
    • Jérome Perrin's avatar
      test: fix python3 syntax errors on testAccounting · d8999426
      Jérome Perrin authored
      (because my editor runs python3 pytlint)
      d8999426
  8. 19 Mar, 2019 9 commits
  9. 14 Mar, 2019 12 commits