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

Unable to query the md5 sum from python.

From: Mathias Froehlich <M.Froehlich_at_science-computing.de>
Date: 2005-05-30 18:04:22 CEST

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?

     Greetings

           Mathias

-- 
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon May 30 18:06:04 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.