示例#1
0
 def get_trust_roots(self):
     """Delegates the call and unwraps the needed parameter."""
     try:
         result = self._delegate.get_trust_roots(self.requestCertificate())
     except Exception as e:
         return gapitools.form_error_return(logger, e)
     return gapitools.form_success_return(result)
示例#2
0
 def get_trust_roots(self):
     """Delegates the call and unwraps the needed parameter."""
     try:
         result = self._delegate.get_trust_roots(self.requestCertificate())
     except Exception as e:
         return gapitools.form_error_return(logger, e)
     return gapitools.form_success_return(result)
示例#3
0
 def lookup_authorities_for_urns(self, urns):
     """Delegates the call and unwraps the needed parameter."""
     try:
         result = self._delegate.lookup_authorities_for_urns(self.requestCertificate(), urns)
     except Exception as e:
         return gapitools.form_error_return(logger, e)
     return gapitools.form_success_return(result)
示例#4
0
 def lookup_authorities_for_urns(self, urns):
     """Delegates the call and unwraps the needed parameter."""
     try:
         result = self._delegate.lookup_authorities_for_urns(
             self.requestCertificate(), urns)
     except Exception as e:
         return gapitools.form_error_return(logger, e)
     return gapitools.form_success_return(result)
示例#5
0
文件: gmavone.py 项目: EICT/C-BAS
 def lookup_private_member_info(self, credentials, options):
     """Delegates the call and unwraps the needed parameter."""
     try:
         field_filter = options.pop('filter') if ('filter' in options) else None
         field_match = options.pop('match') if ('match' in options) else None
         result = self._delegate.lookup_private_member_info(self.requestCertificate(), credentials, field_filter, field_match, options)
     except Exception as e:
         return gapitools.form_error_return(logger, e)
     return gapitools.form_success_return(result)
示例#6
0
 def get_version(self):
     """Delegates the call and unwraps the needed parameter."""
     try:
         version, fields = self._delegate.get_version(self.requestCertificate())
         result = {}
         result['VERSION'] = version
         if fields:
             result["FIELDS"] = fields
     except Exception as e:
         return gapitools.form_error_return(logger, e)
     return gapitools.form_success_return(result)
示例#7
0
 def lookup_public_member_info(self, options):
     """Delegates the call and unwraps the needed parameter."""
     try:
         field_filter = options.pop('filter') if ('filter'
                                                  in options) else None
         field_match = options.pop('match') if ('match'
                                                in options) else None
         result = self._delegate.lookup_public_member_info(
             self.requestCertificate(), field_filter, field_match, options)
     except Exception as e:
         return gapitools.form_error_return(logger, e)
     return gapitools.form_success_return(result)
示例#8
0
 def get_version(self):
     """Delegates the call and unwraps the needed parameter."""
     try:
         version, fields = self._delegate.get_version(
             self.requestCertificate())
         result = {}
         result['VERSION'] = version
         if fields:
             result["FIELDS"] = fields
     except Exception as e:
         return gapitools.form_error_return(logger, e)
     return gapitools.form_success_return(result)
示例#9
0
文件: gmavone.py 项目: EICT/C-BAS
 def get_version(self):
     """Delegates the call and unwraps the needed parameter."""
     try:
         version, add_services, credential_types, fields = self._delegate.get_version(self.requestCertificate())
         result = {}
         result['VERSION'] = version
         result['CREDENTIAL_TYPES'] = credential_types
         result['SERVICES'] = ['MEMBER'] + add_services
         if fields:
             result["FIELDS"] = fields
     except Exception as e:
         return gapitools.form_error_return(logger, e)
     return gapitools.form_success_return(result)
示例#10
0
 def get_version(self):
     """Delegates the call and unwraps the needed parameter."""
     try:
         version, add_services, credential_types, fields = self._delegate.get_version(
             self.requestCertificate())
         result = {}
         result['VERSION'] = version
         result['CREDENTIAL_TYPES'] = credential_types
         result['SERVICES'] = ['MEMBER'] + add_services
         if fields:
             result["FIELDS"] = fields
     except Exception as e:
         return gapitools.form_error_return(logger, e)
     return gapitools.form_success_return(result)