Пример #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]