예제 #1
0
 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)
예제 #2
0
 def _to_python(self, value, state):    
     cases = getCases()
     if value not in cases:
         raise Invalid(self.message('invalid', state), value, state)
     else:
         return value