예제 #1
0
 def alarms(self, request, tag):
     """
     dynamically render the alarms
     """
     if not self.display_alarms:
         return ''
     else:
         alarm_snippet = XMLFile(
             FilePath("TrackerDash/snippets/green_alarm.xml"))
         return alarm_snippet.load()
예제 #2
0
 def content(self, request, tag):
     """
     get the content for the configuration page
     """
     footer_snippet = XMLFile(FilePath("TrackerDash/snippets/new_dash.xml"))
     return footer_snippet.load()
예제 #3
0
 def footer(self, request, tag):
     """
     dynamically render the footer
     """
     footer_snippet = XMLFile(FilePath("TrackerDash/snippets/footer.xml"))
     return footer_snippet.load()
예제 #4
0
 def content(self, request, tag):
     """
     get the content for the configuration page
     """
     log_content = XMLFile(FilePath("TrackerDash/snippets/logs.xml"))
     return log_content.load()