1. 25 Sep, 2019 3 commits
    • Xiaowu Zhang's avatar
      portal_type_class: possible to overwrite methods or properties in mixin · b6b517ee
      Xiaowu Zhang authored
      Before this change, class hierarchy is like this when using mixin:
      ```
      class MyClass(BaseClass, Mixin1....)
      ```
      which is usually ok when classes don't override each other's
      
      But if we want to overwrite BaseClass's method by using mixin to do more thing,
      
      For example:
      ```
      class BaseClass(object):
        def test(self):
          print 'base test'
      
      class Mixin1(object):
        def test(self):
          super(Mixin,self).test()
          print 'mixin'
      ```
      I want to display 'mixin base test' when call test, but it doesn't work
      
      since priority of how methods are resolved is from left
      
      to right: BaseClass----->Mixin1, it only display 'base test'
      
      So the correct way to use mixin should be in reverse order:
      ```
      class MyClass(Mixin1, BaseClass)
      ```
      
      /reviewed-on nexedi/erp5!935
      b6b517ee
    • Jérome Perrin's avatar
      ZEO tests: wait for other nodes to register · 0d996b48
      Jérome Perrin authored
      When other nodes takes time to start they are not always registered
      when the "main" node asserts that they are there.
      We observed problems in an environment where resolving localhost (by
      DNS) takes 10 seconds.
      
      Also introduce getOtherZopeNodeList utility method that can be useful in
      other ZEO tests in ProcessingNodeTestCase
      0d996b48
    • Jérome Perrin's avatar
      ProcessingNodeTestCase: resolve conflicts on test_distributing_node · e50bcc8b
      Jérome Perrin authored
      When other zope nodes takes time to start this sometimes causes
      conflict.
      e50bcc8b
  2. 24 Sep, 2019 3 commits
  3. 23 Sep, 2019 2 commits
  4. 21 Sep, 2019 23 commits
  5. 20 Sep, 2019 6 commits
  6. 19 Sep, 2019 3 commits