示例#1
0
 def GET(self, occupation):
     if os.path.exists(config.cache_dir + '/occupation/' + occupation):
         committees = pickle.load(
             file(config.cache_dir + '/occupation/' + occupation))[1]
     else:
         committees = committees_by_occupation(occupation)
     return render.occupation_committees(committees, occupation)
示例#2
0
 def GET(self, occupation):
     if os.path.exists(config.cache_dir + '/occupation/' + occupation):
          committees = pickle.load(file(config.cache_dir + '/occupation/' + occupation))[1]
     else:
          committees = committees_by_occupation(occupation)
     return render.occupation_committees(committees, occupation)     
示例#3
0
文件: webapp.py 项目: kragen/watchdog
 def GET(self, occupation):
     committees = committees_by_occupation(occupation)
     return render.occupation_committees(committees, occupation)