Exemple #1
0
 def handle_check_action_failure(self, action, data, errors):
     log_auth_error(self.context, self.request, errors)
     if len(errors) == 1:
         self.status = '<p>There is an error:</p>'
     else:
         self.status = '<p>There are errors:</p>'
     assert type(self.status) == unicode
 def handle_the_jandal_failure(self, action, data, errors):
     log_auth_error(self.context, self.request, errors)
     if len(errors) == 1:
         self.status = '<p>There is an error:</p>'
     else:
         self.status = '<p>There are errors:</p>'
 def handle_list_failure(self, action, data, errors):
     log_auth_error(self.context, self.request, errors)
     retval = self.build_error_response(action, data, errors)
     return retval
Exemple #4
0
 def handle_get_all_digests_failure(self, action, data, errors):
     log_auth_error(self.context, self.request, errors)
     retval = self.build_error_response(action, data, errors)
     return retval
 def handle_send_all_digests_failure(self, action, data, errors):
     log_auth_error(self.context, self.request, errors)
     if len(errors) == 1:
         self.status = '<p>There is an error:</p>'
Exemple #6
0
 def handle_send_all_digests_failure(self, action, data, errors):
     log_auth_error(self.context, self.request, errors)
     if len(errors) == 1:
         self.status = '<p>There is an error:</p>'