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

Re: python swig binding problem with _p_p_apr_hash_t

From: Alexis Boutillier <alexis.boutillier_at_arteris.net>
Date: 2004-03-15 11:30:40 CET

i tried that :

adm_baton = wc.svn_wc_adm_open(None , dir, 1, 1, pool)
listres = wc.svn_wc_entries_read(adm_baton,True,pool)

and i get this error :

    File "plib/test.py", line 45, in ?
      core.run_app(check)
    File "/opt/alexis/svn1.0/lib/svn-python/svn/core.py", line 33, in
run_app
      return apply(func, (pool,) + args, kw)
    File "plib/test.py", line 27, in check
      listres = wc.svn_wc_entries_read(adm_baton,True,pool)
TypeError: svn_wc_entries_read() takes exactly 4 arguments (3 given)

i will try svn-py to see how it goes with it.

thanks

>> On 12 Mar 2004 10:33:33 -0600, C. Michael Pilato <cmpilato@collab.net>
>> wrote:
>> Alexis Boutillier <alexis.boutillier@arteris.net> writes:
>> I try to make a client program that read the entries so i wanted to
>> test the svn_wc_entries_read() fonction of the wc package.
>> svn_wc_entries_read() creates a hash in the C interface (note the two
>> asterisks in the header file), so generally we make the bindings just
>> return that hash. We don't typically care about returning an error
>> code because Python has an Exception system for that.
>> this is the python code :
>> check(pool):
>> adm_baton = wc.svn_wc_adm_open(None , dir, 1, 1, pool)
>> listres = {}
>> t = wc.svn_wc_entries_read(listres,adm_baton,True,pool)
>>
> So, try:
> adm_baton = wc.svn_wc_adm_open(None, dir, 1, 1, pool)
> listres = wc.svn_wc_entries_read(adm_baton, 1, pool)
>

-- 
Boutillier Alexis
Methodology engineer
Arteris SA
The Network-on-Chip Company (TM)
www.arteris.net
6 parc Ariane Immeuble Mercure
78284 Guyancourt Cedex
France
Office: (+33) 1 61 37 38 71
Fac:    (+33) 1 61 37 38 41
Alexis.Boutillier@arteris.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 15 11:31:13 2004

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.