Example #1
0
 def _read_events(self):
     events = []
     # need first to check if timelines are loaded
     if not any([
             "No records found for this timeline" in fm.message
             for fm in flash.get_messages()
     ]):
         for event in jstimelines.events():
             events.append(event.block_info())
     return events
 def has_warning(self):
     self.load_chart_reference()
     for msg in flash.get_messages():
         if msg.level is "warning":
             return True
     return False
Example #3
0
 def has_warning(self):
     self.load_chart_reference()
     for msg in flash.get_messages():
         if msg.level is "warning":
             return True
     return False