[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Merging the ctypes python bindings to trunk

From: Eric Gillespie <epg_at_pretzelnet.org>
Date: Sun, 21 Sep 2008 17:22:34 -0700

"David James" <james82_at_gmail.com> writes:

> To test on Windows, I build the csvn Python bindings on Linux and then
> copy the generated Python files to Windows.

Hmm. I wonder if this works with ctypes then? If not, what
would I do instead?

  providers = [
    svn.client.get_simple_provider(),
    svn.client.get_username_provider(),
    ]
  try:
    providers.append(svn.core.svn_auth_get_windows_ssl_server_trust_provider())
  except AttributeError:
    pass
  providers.extend([
    svn.client.get_ssl_server_trust_file_provider(),
    svn.client.get_ssl_client_cert_file_provider(),
    svn.client.get_ssl_client_cert_pw_file_provider(),
    ])

  try:
    providers.append(svn.core.svn_auth_get_keychain_simple_provider())
  except AttributeError:
    pass
  try:
    providers.append(svn.core.svn_auth_get_windows_simple_provider())
  except AttributeError:
    pass
  providers.extend([
      svn.client.get_simple_prompt_provider(SimplePrompt, 2),
      svn.client.get_username_prompt_provider(UsernamePrompt, 2),
      svn.client.get_ssl_server_trust_prompt_provider(SSLServerTrustPrompt),
      svn.client.get_ssl_client_cert_prompt_provider(SSLClientCertPrompt, 2),
      svn.client.get_ssl_client_cert_pw_prompt_provider(SSLClientCertPwPrompt,
                                                        2),
      ])

At any rate, +1 to getting csvn in and recommending it, -1 to
desupporting swig-py (I know you weren't suggesting that, just
saying :).

Thanks.

-- 
Eric Gillespie <*> epg_at_pretzelnet.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-09-22 02:22:51 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.