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

Re: Unable to query the md5 sum from python.

From: Max Bowsher <maxb_at_ukf.net>
Date: 2005-05-30 23:53:46 CEST

Mathias Froehlich wrote:
> Hi,
>
> I need to extract the md5 sum of a file in the repository from python.
> There is a swig python binding to the svn_fs_file_md5_checksum function
> available.
> But whan I call the function in a way I would expect it to work like
> soutless other swig translations of svn functions
>
> sum = fs.file_md5_checksum(root, path, pool)
>
> function from a win32 environment using the current subversion-1.2.0
> python
> binding binaries, it complains that file_md5_checksum has 4 arguments not
> 3.
>
> But calling it like
>
> sum = ' ' # room for 16 chars
> fs.file_md5_checksum(sum, root, path, pool)
>
> results in
>
> TypeError: Type error. Got , expected _p_unsigned_char
>
> which tells me that I there is no type conversion for that datatype
> available.
>
> Looking into svn_types.i there are only type conversions for perl
> available
> for those unsigned char[ANY] types.
>
> Can anybody help my to include similar type conversions for the python
> bindings?

Turned out to be fairly easy, so done in trunk r14885.
Proposed for backport to 1.2.x.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 30 23:55:35 2005

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

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