Hi guys, I get the error pysvn.Client.callback_ssl_server_trust_prompt required when trying to commit. I understand that this is due to the trust in online verification.
Here is the documentation, I just don't get it.
pysvn.Client.callback_ssl_server_trust_prompt import pysvn def ssl_server_trust_prompt( trust_dict ): return retcode, accepted_failures, save client = pysvn.Client() client.callback_ssl_server_trust_prompt = ssl_server_trust_prompt
The ssl_server_trust_prompt callback is called each time the HTTPS server submits a certificate and subversion is not sure whether to trust it. callback_ssl_server_trust_prompt - with certificate information in the power of attorney.
failures - int - failure bitmask - [What do these bits mean?] Host name - string - name of the host whose certificate was submitted with finger_print - string - certificate finger print valid_from - string - valid from this date ISO8601 valid_until - string - valid ISO8601 date issuer_dname - stirng - issued domain name - string - reals pysvn expects callback_ssl_server_trust_prompt to return a tuple of three values ββ(retcode, accepted_failures, save).
retcode - boolean, False if there is no username and password. True, if subversion is to use a username and password. accepted_failures - int, accepted failures allowed save - boolean, return True, if you want subversion remember the certificate in the configuration directory. return False to prevent the certificate from being saved.
source share