Beispiel #1
0
 def check_visibility(self, lookup_property, property_group):
     """Determine if the lookup_property should be drawn in the Panel"""
     vt = Logician(property_group)
     if lookup_property in property_group.visibility.keys():
         if hasattr(property_group, lookup_property):
             member = getattr(property_group, lookup_property)
         else:
             member = None
         return vt.test_logic(member, property_group.visibility[lookup_property])
     else:
         return True
Beispiel #2
0
 def check_alert(self, lookup_property, property_group):
     """Determine if the lookup_property should be in an alert state in the Panel"""
     et = Logician(property_group)
     if lookup_property in property_group.alert.keys():
         if hasattr(property_group, lookup_property):
             member = getattr(property_group, lookup_property)
         else:
             member = None
         return et.test_logic(member, property_group.alert[lookup_property])
     else:
         return False
Beispiel #3
0
 def check_enabled(self, lookup_property, property_group):
     """Determine if the lookup_property should be enabled in the Panel"""
     et = Logician(property_group)
     if lookup_property in property_group.enabled.keys():
         if hasattr(property_group, lookup_property):
             member = getattr(property_group, lookup_property)
         else:
             member = None
         return et.test_logic(member, property_group.enabled[lookup_property])
     else:
         return True
Beispiel #4
0
 def check_alert(self, lookup_property, property_group):
     """Determine if the lookup_property should be in an alert state in the Panel"""
     et = Logician(property_group)
     if lookup_property in property_group.alert.keys():
         if hasattr(property_group, lookup_property):
             member = getattr(property_group, lookup_property)
         else:
             member = None
         return et.test_logic(member, property_group.alert[lookup_property])
     else:
         return False
Beispiel #5
0
 def check_visibility(self, lookup_property, property_group):
     """Determine if the lookup_property should be drawn in the Panel"""
     vt = Logician(property_group)
     if lookup_property in property_group.visibility.keys():
         if hasattr(property_group, lookup_property):
             member = getattr(property_group, lookup_property)
         else:
             member = None
         return vt.test_logic(member,
             property_group.visibility[lookup_property])
     else:
         return True
Beispiel #6
0
 def check_enabled(self, lookup_property, property_group):
     """Determine if the lookup_property should be enabled in the Panel"""
     et = Logician(property_group)
     if lookup_property in property_group.enabled.keys():
         if hasattr(property_group, lookup_property):
             member = getattr(property_group, lookup_property)
         else:
             member = None
         return et.test_logic(member,
             property_group.enabled[lookup_property])
     else:
         return True