コード例 #1
0
 def get(self):
   tv = {'login': str(datetime.datetime.now() + datetime.timedelta(hours=8))[:-7],
         'twsew': twsew().weight,
       }
   self.response.out.write(template.render('./template/h_weight.htm',{'tv':tv}))
コード例 #2
0
 def get(self):
   tv = {'login': str(datetime.datetime.now() + datetime.timedelta(hours=8))[:-7],
         'test': twsew().weight,
         'twse': twsk(self.request.get('q')).sread
       }
   self.response.out.write(template.render('./template/h_index.htm',{'tv':tv}))