1. 29 Oct, 2010 2 commits
    • Nicolas Dumazet's avatar
      fix test_security_defined_on_class after portal type classes changes · 1f851edf
      Nicolas Dumazet authored
      This test checks that wrapping a method in an interaction workflow adds
      security to the wrapped method, but that it does not override existing
      (class) security definition.
      
      To do so, a private method (doSomethingStupid) is added on Organisation
      document class. We really want to change the (static) document class here,
      not the portal type class: before portal type classes changes,
      ERP5Type.Document.Organisation.Organisation was a copy of the document
      ERP5.Document.Organisation.Organisation. After portal classes, the former
      is a portal type class, and it does not make sense in test logic to add
      a method on the portal type class.
      
      It is correct to change the import path to access the physical Document class.
      
      
      git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39652 20353a03-c40f-0410-a6d1-a30d3c3de9de
      1f851edf
    • Nicolas Dumazet's avatar
      fix testFolder.test_upgradeObjectClassWithStrings with portal type classes code · 69767b4b
      Nicolas Dumazet authored
      testFolder is matching objects of a folder against a criterion and changing their
      class if they match.
      This test case in particular was using obj.__class__.__name__ as a criterion,
      and the values have changed with portal type classes.
      
      
      git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39651 20353a03-c40f-0410-a6d1-a30d3c3de9de
      69767b4b
  2. 28 Oct, 2010 38 commits