Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 3
0
 def footer(self, request, tag):
     """
     dynamically render the footer
     """
     footer_snippet = XMLFile(FilePath("TrackerDash/snippets/footer.xml"))
     return footer_snippet.load()
Ejemplo n.º 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()