Re: Proof of concept higher-level python bindings for SoC project
From: David Glasser <glasser_at_mit.edu>
Date: 2007-05-02 19:49:57 CEST
On 5/2/07, David Glasser <glasser@mit.edu> wrote:
I have to get back to work now, but pasted below is my work in
--dave
#!/usr/bin/env python2.5
from csvn.core import *
def dict_from_apr_hash(h, val_type, pool):
hi = apr_hash_first(pool, h)
# This *can't* be 'hi is not None' even though I thought NULL maps
key_as_string = cast(key_vp, c_char_p).value
hi = apr_hash_next(hi)
return d
s = ClientSession("http://svn.collab.net/repos/svn/trunk")
h = POINTER(apr_hash_t)()
svn_ra_get_dir(s,
print dict_from_apr_hash(h, POINTER(svn_dirent_t), s.pool)
-- David Glasser | glasser_at_mit.edu | http://www.davidglasser.net/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Wed May 2 19:50:09 2007 |
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.