예제 #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
파일: webapp.py 프로젝트: asldevi/watchdog
 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)