示例#1
0
 def get(self):
     data = memcache.get('school')
     if data is None or common.debug:
         page = self.request.path[8:].capitalize()
         data = tpl('stub.html', { 'page': page })
         memcache.set('school', data)
     user_tpl(self, data)
示例#2
0
 def get(self):
     data = memcache.get('school')
     if data is None or common.debug:
         data = tpl('home.html')
         memcache.set('school', data)
     user_tpl(self, data)