Changes between Initial Version and Version 1 of Ticket #9065


Ignore:
Timestamp:
05/31/10 10:30:28 (12 years ago)
Author:
nthiery
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9065 – Description

    initial v1  
    55
    66This involves:
     7 - Adding a new optional argument for Parent.__init__: {{{Parent.__init__(self, facade = [ZZ])}}}
    78 - Creating a category or abstract class for facade parents
    8    Such parents should declare a list of parents they are facade
    9    for.
    10  - Adding a method P.check_element(x) (find a better name!) in Sets.ParentMethods which checks that the parent of x is P. Override this method for facade parents to check that the parent of x is one of the declared parents of P.
    11  - Fix P._test_one(), P._test_zero(), P._test_an_element() (and maybe others) to use P.check_element(x) instead of x in P.
     9 - Adding a method P.is_parent_of(x) in Sets.ParentMethods which checks that the parent of x is (equal to) P. Override this method for facade parents to check that the parent of x is one of the declared parents of P.
     10 - Fix P._test_one(), P._test_zero(), P._test_an_element() (and maybe others) to use {{{P.is_parent_of(x)}}} instead of {{{x in P}}}.