Exemplo n.º 1
0
class ConditionalAccess(SelectorPart):
    '''
    '''
    
    def __init__(self):
        super(ConditionalAccess, self).__init__()
        self._condition = Disjunction()
    
    def add(self, pred):
        if not isinstance(pred, Predicate):
            raise InconsistentExpression(type(pred))
        self._condition.add(pred)
Exemplo n.º 2
0
 def __init__(self):
     super(ConditionalAccess, self).__init__()
     self._condition = Disjunction()