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

Re: Learning the Python API - early questions

From: Barry Scott <barry_at_barrys-emacs.org>
Date: 2003-10-04 12:26:09 CEST

At 03-10-2003 15:56, Russell Yanofsky wrote:

>Apparently not. I'd guess that you should set ctx.config to the return value
>of svn_config_get_config(), since it's expecting a hash table, not an
>individual svn_config_t pointer.

But you are returning a python dict not a _p_apr_hash_t.
If I give you my code we can speed up the testing cycle.

Can you get this test code working?

                 BArry

-----------------------------------------------------
import sys
import svn.core
import svn.client

def main(argv):
         try:
                 pool = svn.core.svn_pool_create(None)
                 svn.core.svn_config_ensure( None, pool )

                 ctx = svn.client.svn_client_ctx_t()
                 print 'ctx:',repr(ctx)

                 config = svn.core.svn_config_get_config( None, pool )

                 print 'config repr:',repr(config)
                 print 'config type:',type(config)

                 ctx.config = config

         finally:
                 svn.core.svn_pool_destroy(pool)

         return 0

if __name__ == '__main__':
         sys.exit( main( sys.argv ) )
-------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Oct 4 12:27:12 2003

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.