Exemple #1
0
 def get_rules(self):
     return AndRules([
         Rule(
             OpConstraint('ChargeAPI.chargeOffer',
                          OpConstraint.OPS['ISSET'], None, DEFAULT_TYPE,
                          Constraint.VALUE_TYPE['RAW']))
     ])
Exemple #2
0
 def get_rules(self):
     return OrRules([
         Rule(
             OpConstraint('anyfeature', OpConstraint.OPS['ISSET'], None,
                          'anytype', Constraint.VALUE_TYPE['RAW']))
     ])
 def get_trigger_rules(self):
     return Rule(
         OpConstraint('anyfeature', OpConstraint.OPS['ISSET'], None,
                      'anytype', VALUE_TYPE_RAW))
Exemple #4
0
 def get_rules(self):
     return AndRules([
         Rule(ChangeConstraint('temp', 'kuehlschrank', Constraint.VALUE_TYPE['RAW']))
     ])