Ejemplo n.º 1
0
 def get(self):
     params = self.check_login("/cron/front")
     params['house_daily_items'] = getMNHouseSessionDaily(5)
     params['current_bills'] = getCurrentBills(5)
     bill_counts = getBillCounts()
     params['top'] = bill_counts[:10]
     self.cache_render('front_page', main_page, **params)
Ejemplo n.º 2
0
 def get(self):
     params=self.check_login("/cron/front")
     params['house_daily_items']=getMNHouseSessionDaily(5)
     params['current_bills']=getCurrentBills(5)
     bill_counts=getBillCounts()
     params['top']=bill_counts[:10]
     self.cache_render('front_page',main_page, **params)
Ejemplo n.º 3
0
 def get(self):
     params = self.check_login("/")
     page = getFromCache('front_page')
     if not page:
         params['house_daily_items'] = getMNHouseSessionDaily(5)
         params['current_bills'] = getCurrentBills(5)
         bill_counts = getBillCounts()
         params['top'] = bill_counts[:10]
         self.cache_render('front_page', main_page, **params)
     else:
         self.write(page)
Ejemplo n.º 4
0
 def get(self):
     params=self.check_login("/")
     page=getFromCache('front_page')
     if not page:
         params['house_daily_items']=getMNHouseSessionDaily(5)
         params['current_bills']=getCurrentBills(5)
         bill_counts=getBillCounts()
         params['top']=bill_counts[:10]
         self.cache_render('front_page',main_page, **params)
     else:
         self.write(page)