def load(self, **vars): """ Endpoint for the page to load an old case. """ self.loaded_case = True cases = getCases() return self.returnResponse('wizard', 'load_case.html', cases = cases, **vars)
def _to_python(self, value, state): cases = getCases() if value not in cases: raise Invalid(self.message('invalid', state), value, state) else: return value