def setInitial(self, params):
     err = None
     try:
         initial = DJANGOUtils.set_initial(params, self.app_name)
     except Exception, e:
         err = "FAIL: set_initial. ERROR: " + str(e) + " PARAMS: " + str(params)
         return {}, {}, err
 def setFormCleaned(self, params):
     err = None
     try:
         form_cleaned = DJANGOUtils.set_form(params, clean=True)
     except Exception, e:
         err = "FAIL: set_form_cleaned. ERROR: " + str(e) + " PARAMS: " + str(params)
         return {}, err
 def setForm(self,params):
     err = None
     try:
         form = DJANGOUtils.set_form(params,clean=False)
     except Exception, e:
         err = 'FAIL: set_form. ERROR: ' + str(e) + ' PARAMS: ' + str(params)
         return {}, err