1. 27 Nov, 2019 16 commits
    • Jérome Perrin's avatar
      core: rename PropertySheetChild_validateIDField · 99ce4ad5
      Jérome Perrin authored
      PropertySheetChild is not an acceptable prefix, use Base as the context
      is used. Technically, this uses the "id as reference" mixin, but this
      mixin is a bit special as it has takes the suffix as parameter and does
      not reside in mixin module, so we just use Base as a prefix.
      99ce4ad5
    • Jérome Perrin's avatar
      bt5: fix naming convention for FieldValidator_requireIfDialogConfirmed · d70576ba
      Jérome Perrin authored
      FieldValidator is not an acceptable prefix,
      Base_validateDialogConfirmation seems better
      d70576ba
    • Jérome Perrin's avatar
      bt5: rename planning box scripts to comply with naming conventions · da173aad
      Jérome Perrin authored
      Rounding scripts:
      
      Planning is not an acceptable prefix, this script is called on the
      current context, so let's use Base_ as a prefix.
      
      Planning_roundBoundToMinute → Base_roundPlanningBoxBoundToMinute
      Planning_roundBoundToDay → Base_roundPlanningBoxBoundToDay
      Planning_roundBoundToInt → Base_roundPlanningBoxBoundToInt
      da173aad
    • Jérome Perrin's avatar
      CodingStyle: ignore more skins and prefixs · 92cd2032
      Jérome Perrin authored
      Module is an acceptable prefix for modules
      
      Introduce a list of skins IDs that does not match our conventions but
      are acceptable because this is what external API are calling.
      92cd2032
    • Jérome Perrin's avatar
      core: fix Folder_cut to check relations of sub-objects · b93b5f3d
      Jérome Perrin authored
      This `o` was an unused variable. The initial intention was probably
      this.
      b93b5f3d
    • Jérome Perrin's avatar
      core: remove unused scripts · 16ba032d
      Jérome Perrin authored
      These scripts are not used and does not respect naming conventions or
      have pylint errors.
      16ba032d
    • Jérome Perrin's avatar
      core: trivial fixes for pylint · 1646a4d2
      Jérome Perrin authored
      1646a4d2
    • Jérome Perrin's avatar
      CodingStyleTest: run testXHTML for each business template · 3823b3f7
      Jérome Perrin authored
      This will allow to find problems when only business templates and their
      dependencies are installed. When we run testXHTML with all business
      template installed we don't see problems that may happen only when some
      business templates are not installed.
      3823b3f7
    • Jérome Perrin's avatar
      forge/administration: move some scripts to administration · f30bd453
      Jérome Perrin authored
      These scripts are used to check the site configuration and also in
      CodingStyleTest.
      
      This is just the minimal so that CodingStyleTest can run, but this could
      be extended to several scripts currently in erp5_toolbox skinfolder of
      erp5_forge which overlaps with erp5_administration. Also, regarding
      CodingStyleTest, it seems that erp5_administration contain a lot of
      things, so we may want to extract a smaller business template containing
      only the scripts used for static analysis of business template.
      f30bd453
    • Jérome Perrin's avatar
      administration: include new component types in "check source code" · f8dd6062
      Jérome Perrin authored
      We want this check to run on all components.
      f8dd6062
    • Jérome Perrin's avatar
      testXHTML: test portal types also from tools · e3d6dbe1
      Jérome Perrin authored
      Some portal types such as Business Template were not tested by testXHTML
      because this tests starts by modules and recursively tests based on
      allowed content types. But types that are not created in a module but in
      a tool were never tested.
      
      Keep the current way of testing view of portal types in their natural
      containers by starting from modules and make another pass to test anyway
      portal types that might be contained in tool. In that case, we use a
      mapping of known tools IDs because I don't think we can introspect at
      this point.
      e3d6dbe1
    • Jérome Perrin's avatar
      core: support non initialized cache when viewing cache statistics · ffd78ee1
      Jérome Perrin authored
      Maybe what's missing is an interaction to update cache internals with
      updateCache when a cache is added, but that's enough to make TestXHTML
      pass now.
      
      fixup! core: workaround non initialized cache when viewing cache statistics
      ffd78ee1
    • Jérome Perrin's avatar
      ERP5: fix propertysheets for IdGenerator · c46511f4
      Jérome Perrin authored
      DublinCore was missing, so getCompactTitle was causing AttributeError
      _baseGetTranslatedTitle
      c46511f4
    • Jérome Perrin's avatar
      core: Workaround invalid html on AlarmTool_viewAlarmList · db1ddb54
      Jérome Perrin authored
      When listboxs has an editable field, but the field is non editable, it
      produces a markup like:
        <a href="link to the line"><EditableField/></a>
      This is fine for most fields, but some editable fields are rendered as
      an <input> even if they are not editable - this is the case for
      CheckBoxField.
      To prevent rendering <a><input></a> which is not valid HTML, configure
      the enabled field as non-editable on alarm list view, with this change
      listbox treats the field as an editable field and just render the field
      as <EditableField/> without the <a>.
      To keep the same visual appearance of having a disabled checkbox field,
      make this field disabled with extra.
      db1ddb54
    • Jérome Perrin's avatar
    • Jérome Perrin's avatar
      core/forge: fix scripts "Repository History" actions · 1fe56123
      Jérome Perrin authored
      The action was in erp5_core, but the form in erp5_forge. Move the action
      in erp5_forge.
      
      The listbox list method was raising error because it was using catalog
      with unsupported installation_state=. Change to use contentValues
      instead.
      
      This listbox had "Listbox" as a title, use "History" instead, which
      makes a little more sense in this context.
      1fe56123
  2. 26 Nov, 2019 3 commits
  3. 25 Nov, 2019 5 commits
  4. 22 Nov, 2019 12 commits
  5. 21 Nov, 2019 4 commits