1. 10 Jul, 2013 3 commits
    • Arnaud Fontaine's avatar
      ZODB Components: Revert partially "ZODB Components: Fix bootstrap of migrated bt5s.". · 4db2cc8a
      Arnaud Fontaine authored
      This reverts the following part of 5d9c30e:
      
      * Upon bt5 installation, install portal_type* items before bt5 {Document,
        Extensions...} as corresponding Portal Type are required once they have been
        migrated to ZODB Components.
      
      This obviously does not work as the Document can be used as Type Class and
      also because tool_item is required before portal_types for example (see
      test_type_provider).
      
      When bootstrapping erp5_core and installing for example an Extension
      Component, this will try to load Extension Component Portal Type which does
      not exist yet but fallback on its document class instead, which is enough
      until Extension Component Portal Type is installed.
      4db2cc8a
    • Arnaud Fontaine's avatar
      ZODB Components: Fix bootstrap of migrated bt5s. · 72645f84
      Arnaud Fontaine authored
      * Upon bt5 installation, install portal_type* items before bt5 {Document,
        Extensions...} as corresponding Portal Type are required once they have been
        migrated to ZODB Components.
      
      * Likewise portal_{property_sheets, types}, portal_components must be created
        automatically *before* installing any bt5. This is required when Products
        will be migrated but also for bt5 items before bootstrapping erp5_core bt5.
      
      * Set Permissions in ComponentTool instanciation and revoke all permissions,
        then allow only some of them for security sake.
      
      * When creating ERP5 site with unit tests, add ERP5TypeTestCase to Developer
        Role ASAP so that there is no Permission issue when installing bootstrap bt5
        and test bt5s containing ZODB Components.
      72645f84
    • Arnaud Fontaine's avatar
      ZODB Components: Upon migration, Workflow History of ZODB Components must be kept. · 9efef64e
      Arnaud Fontaine authored
      Also, upon installation of bt5s, install WorkflowItem before Components as it
      is needed to restore history.
      
      Another solution would have been to validate() ZODB Components automatically
      upon bt5 installation but it would mean losing 'modified' state information
      and also imply that *all of them* will be validated even if a developer wants
      to publish non-validated ZODB Components.
      9efef64e
  2. 21 Jun, 2013 2 commits
    • Arnaud Fontaine's avatar
      Avoid regeneration of classes when starting a node within a cluster with already started nodes. · 6db7532a
      Arnaud Fontaine authored
      When starting a node, ERP5Site.__of__ calls ComponentTool.reset(), which was
      never synchronised so it returned True (without generating a new cookie at its
      level) and causing synchronizeDynamicModules to be called with
      force=True. This generated a new cookie and leading to dynamic classes being
      meaninglessly regenerated on all nodes.
      
      Instead, modify ComponentTool.reset() behavior so it *always* reset Portal
      Type classes when Components are reset (as it should have always been as the
      class inheritance may have been modified) and force regeneration of Portal
      Type classes in this method if reset is True.
      
      Signed-off: Vincent Pelletier <vincent@nexedi.com>
      6db7532a
    • Arnaud Fontaine's avatar
      Upon Business Path Item installation, update Local Roles of objects whose... · ada3fb6d
      Arnaud Fontaine authored
      Upon Business Path Item installation, update Local Roles of objects whose Portal Types defines Roles.
      
      Before, Local Roles were not updated upon Path Item installation, thus leading
      to security issues (such as Trade Model Line). This avoids ugly hacks in
      Upgrader and in tests as well.
      
      Also, move Portal Types Role installation before Path so that they can be used
      before updating Roles during Path installation.
      ada3fb6d
  3. 17 May, 2013 1 commit
  4. 12 Apr, 2013 1 commit
  5. 04 Apr, 2013 1 commit
  6. 25 Jan, 2013 1 commit
  7. 07 Dec, 2012 1 commit
  8. 08 Nov, 2012 1 commit
  9. 05 Nov, 2012 1 commit
  10. 08 Oct, 2012 1 commit
  11. 13 Sep, 2012 1 commit
  12. 16 Aug, 2012 2 commits
  13. 12 Jul, 2012 1 commit
  14. 02 Jul, 2012 1 commit
  15. 27 Jun, 2012 1 commit
  16. 21 Jun, 2012 1 commit
  17. 14 Mar, 2012 1 commit
  18. 08 Mar, 2012 1 commit
  19. 07 Mar, 2012 18 commits