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)
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)
def GET(self, occupation): committees = committees_by_occupation(occupation) return render.occupation_committees(committees, occupation)