コード例 #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
コード例 #2
0
 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>'
コード例 #3
0
 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
コード例 #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
コード例 #5
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>'
コード例 #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>'