1. 26 Feb, 2019 2 commits
    • Arnaud Fontaine's avatar
      ZODB Components: Products Documents for a given bt5 can now be migrated from filesystem. · 13a56b51
      Arnaud Fontaine authored
      Until now, only bt5 Extension/Test/Document could be migrated from
      filesystem.
      
      From migration dialog, allow to select any Products.ERP5.Document.* (only,
      for now) to be migrated. By default, automatically select Products Documents
      used by the current bt5 Portal Types (by looking at the mro() of its
      erp5.portal_type classes).
      
      Also, to easily identified where it was migrated from, source_reference
      is set to 'bt.getTitle():ID' for bt5 Extension/Test/Document and
      'Products.ERP5.Document.XXX' for filesystem Products.
      13a56b51
    • Arnaud Fontaine's avatar
      BusinessTemplate: Refactor *TemplateItem Unit Tests classes. · 87d682c6
      Arnaud Fontaine authored
      One Mixin to handle {Document,Interface,Mixin,Test,Extension} code from:
        * deprecated local (instancehome/XXX).
        * ZODB Components.
        * Products migration (in a later commit).
      87d682c6
  2. 25 Feb, 2019 2 commits
  3. 22 Feb, 2019 2 commits
  4. 21 Feb, 2019 2 commits
  5. 20 Feb, 2019 4 commits
  6. 18 Feb, 2019 3 commits
  7. 16 Feb, 2019 1 commit
  8. 15 Feb, 2019 7 commits
  9. 14 Feb, 2019 3 commits
  10. 13 Feb, 2019 5 commits
  11. 12 Feb, 2019 1 commit
    • Arnaud Fontaine's avatar
      ZODB Components: Likewise Document, add Mixin (erp5.component.mixin) and... · e84d2b51
      Arnaud Fontaine authored
      ZODB Components: Likewise Document, add Mixin (erp5.component.mixin) and Interface (erp5.component.interface).
      
      * One Mixin/Interface class per ZODB Component.
        => Already the case for FS Mixin, not for Interfaces.
      * ZODB Components module name ('reference' property) and class name:
        + Mixin: FooMixin.
        + Interface: IFoo.
      
      Rationale:
        + Avoid current FS hacks: registry (Mixins, mixin_class_registry) or import
          all classes explicitly in __init__.py (Products.ERP5Type.interfaces).
        + Consistent naming.
        + Consistent with ZODB Documents Components.
      
      Also, modify pylint checker to handle Zope Interfaces:
        + E: 4, 0: Inheriting 'Interface', which is not a class. (inherit-non-class)
        + E: 5, 2: Method has no argument (no-method-argument)
      e84d2b51
  12. 11 Feb, 2019 3 commits
  13. 08 Feb, 2019 1 commit
  14. 07 Feb, 2019 4 commits