Example #1
0
 def healthcheck(self, country="US", name=None):
     log.debug('healthcheck')
     log.debug("Getting Health Checks for country: %s %s"%(country,name))
     if name:
         c.site  = Site().getByCountryName(country, name)
         c.hosts = c.site.hosts
         prefs   = Preference().getBySiteId(c.site.id)
         if prefs:
             c.prefs = prefs.getData()
     c.info_messages = flash.pop_messages()
     return render('health-check.html')
Example #2
0
 def keynote(self, country="US", name=None):
     log.debug('keynote')
     log.debug("Getting Keynote Data for country: %s %s"%(country,name))
     if name:
         c.site  = Site().getByCountryName(country, name)
         c.hosts = c.site.hosts
         prefs   = Preference().getBySiteId(c.site.id)
         if prefs:
             c.prefs = prefs.getData()
     c.info_messages = flash.pop_messages()
     return render('keynote.html')
Example #3
0
 def index(self, country="US", name=None):
     log.debug('index')
     c.user  = getUser()
     c.sites = Site().getAll()
     if name:
         c.site = Site().getByCountryName(country, name)
         prefs  = Preference().getBySiteId(c.site.id)
         if prefs:
             c.prefs = prefs.getData()
     c.info_messages = flash.pop_messages()
     return render('index.html')