예제 #1
0
    def afterSetUp(self):
        # create some objects
        objs = common.createObjects(self, self.TYPES)
        self.brains = [brain.makeBrainAggregate(self.portal, obj.UID())
                       for obj in objs]

        # construct and register a ruleset
        self.ruleset = common.createRuleset(self, 'ruleset')
예제 #2
0
    def afterSetUp(self):
        self.objs = common.createObjects(self, self.TYPES)
        self.brains = [brain.makeBrainAggregate(self.portal, obj.UID())
                       for obj in self.objs]

        self.ruleset = common.createRuleset(self, 'AnotherRuleset')
        self.ruleset.invokeFactory('Interface Constraint', 'ic')
        self.ic = getattr(self.ruleset, 'ic')
예제 #3
0
    def afterSetUp(self):
        self.objs = common.createObjects(self, self.TYPES)
        self.brains = [brain.makeBrainAggregate(self.portal, obj.UID())
                       for obj in self.objs]

        self.ruleset = common.createRuleset(self, 'AThirdRuleset')
        self.ruleset.invokeFactory('Cardinality Constraint', 'cc')
        self.cc = getattr(self.ruleset, 'cc')
예제 #4
0
    def afterSetUp(self):
        # create some objects
        objs = common.createObjects(self, self.TYPES)
        self.brains = [
            brain.makeBrainAggregate(self.portal, obj.UID()) for obj in objs
        ]

        # construct and register a ruleset
        self.ruleset = common.createRuleset(self, 'ruleset')
예제 #5
0
    def afterSetUp(self):
        self.objs = common.createObjects(self, self.TYPES)
        self.brains = [
            brain.makeBrainAggregate(self.portal, obj.UID())
            for obj in self.objs
        ]

        self.ruleset = common.createRuleset(self, 'AThirdRuleset')
        self.ruleset.invokeFactory('Cardinality Constraint', 'cc')
        self.cc = getattr(self.ruleset, 'cc')
예제 #6
0
    def afterSetUp(self):
        self.objs = common.createObjects(self, self.TYPES)
        self.brains = [
            brain.makeBrainAggregate(self.portal, obj.UID())
            for obj in self.objs
        ]

        self.ruleset = common.createRuleset(self, 'AnotherRuleset')
        self.ruleset.invokeFactory('Interface Constraint', 'ic')
        self.ic = getattr(self.ruleset, 'ic')
예제 #7
0
    def afterSetUp(self):
        self.objs = common.createObjects(self, self.TYPES)
        self.brains = [brain.makeBrainAggregate(self.portal, obj.UID())
                       for obj in self.objs]

        self.ruleset = common.createRuleset(self, 'ARuleset')
        self.ruleset.invokeFactory('Inverse Implicator', 'ii')
        self.ii = getattr(self.ruleset, 'ii')
        self.ruleset2 = common.createRuleset(self, 'AnotherRuleset')
        self.ruleset2.invokeFactory('Inverse Implicator', 'ii')
        self.ii2 = getattr(self.ruleset2, 'ii')
예제 #8
0
    def afterSetUp(self):
        common.installWithinPortal(self, self.portal)
        self.objs = common.createObjects(self, self.TYPES)
        self.brains = [
            brain.makeBrainAggregate(self.portal, obj.UID())
            for obj in self.objs
        ]

        self.ruleset = common.createRuleset(self, 'SomeRuleset')
        self.ruleset.invokeFactory('Type Constraint', 'tc')
        self.tc = getattr(self.ruleset, 'tc')
예제 #9
0
    def afterSetUp(self):
        # create some objects
        self.objs = common.createObjects(self, self.TYPES)
        self.brains = [brain.makeBrainAggregate(self.portal, obj.UID())
                       for obj in self.objs]

        # construct and register a ruleset
        self.ruleset = common.createRuleset(self, 'ruleset')

        # Allow self.TYPES as target
        self.ruleset.invokeFactory('Type Constraint', 'tc')
        self.ruleset.tc.setAllowedTargetTypes(self.TYPES)
예제 #10
0
    def afterSetUp(self):
        self.objs = common.createObjects(self, self.TYPES)
        self.brains = [
            brain.makeBrainAggregate(self.portal, obj.UID())
            for obj in self.objs
        ]

        self.ruleset = common.createRuleset(self, 'ARuleset')
        self.ruleset.invokeFactory('Inverse Implicator', 'ii')
        self.ii = getattr(self.ruleset, 'ii')
        self.ruleset2 = common.createRuleset(self, 'AnotherRuleset')
        self.ruleset2.invokeFactory('Inverse Implicator', 'ii')
        self.ii2 = getattr(self.ruleset2, 'ii')
예제 #11
0
    def afterSetUp(self):
        # create some objects
        self.objs = common.createObjects(self, self.TYPES)
        self.brains = [
            brain.makeBrainAggregate(self.portal, obj.UID())
            for obj in self.objs
        ]

        # construct and register a ruleset
        self.ruleset = common.createRuleset(self, 'ruleset')

        # Allow self.TYPES as target
        self.ruleset.invokeFactory('Type Constraint', 'tc')
        self.ruleset.tc.setAllowedTargetTypes(self.TYPES)
예제 #12
0
    def afterSetUp(self):
        self.objs = common.createObjects(self, self.TYPES)
        self.brains = [brain.makeBrainAggregate(self.portal, obj.UID())
                       for obj in self.objs]

        for name in ('ruleset1', 'ruleset2'):
            ruleset = common.createRuleset(self, name)
            setattr(self, name, ruleset)
            ruleset.invokeFactory('Inverse Implicator', 'ii')
            ruleset.invokeFactory('Content Reference', 'cr')

        for ruleset in self.ruleset1, self.ruleset2:
            ruleset.ii.setInverseRuleset(
                ruleset is self.ruleset1 and self.ruleset2 or self.ruleset1)
            ruleset.cr.setPortalType(self.TYPES[0])
예제 #13
0
    def afterSetUp(self):
        self.objs = common.createObjects(self, self.TYPES)
        self.brains = [
            brain.makeBrainAggregate(self.portal, obj.UID())
            for obj in self.objs
        ]

        for name in ('ruleset1', 'ruleset2'):
            ruleset = common.createRuleset(self, name)
            setattr(self, name, ruleset)
            ruleset.invokeFactory('Inverse Implicator', 'ii')
            ruleset.invokeFactory('Content Reference', 'cr')

        for ruleset in self.ruleset1, self.ruleset2:
            ruleset.ii.setInverseRuleset(
                ruleset is self.ruleset1 and self.ruleset2 or self.ruleset1)
            ruleset.cr.setPortalType(self.TYPES[0])
예제 #14
0
 def afterSetUp(self):
     self.objects = common.createObjects(self, self.TYPES)
예제 #15
0
 def afterSetUp(self):
     common.installWithinPortal(self, self.portal)
     self.objs = common.createObjects(self, self.TYPES)
     self.rulesets = [common.createRuleset(self, j) for j in self.RULESETS]
예제 #16
0
 def afterSetUp(self):
     self.objects = common.createObjects(self, self.TYPES)
예제 #17
0
 def afterSetUp(self):
     common.installWithinPortal(self, self.portal)
     self.objects = common.createObjects(self, self.TYPES)
예제 #18
0
 def afterSetUp(self):
     self.objs = common.createObjects(self, self.TYPES)
     self.rulesets = [common.createRuleset(self, j) for j in self.RULESETS]
예제 #19
0
 def afterSetUp(self):
     self.objs = common.createObjects(self, self.TYPES)
     self.rulesets = [common.createRuleset(self, j) for j in self.RULESETS]