Question regarding the python binding
From: Tino Schwarze <subversion.lists_at_tisc.de>
Date: Thu, 25 Mar 2010 15:17:42 +0100
Hi there,
I'm currently implementing commit hooks and struggling with the python
Background: We want to enforce certain global ignores, MIME types etc.
Back to python: I managed to use the Python bindings to get a value from
***
def main(pool, repos_dir):
# for now, store client configuration in repository root
svncfg = core.svn_config_read (cfgfile, True, pool)
global_ignores = core.svn_config_get (svncfg, core.SVN_CONFIG_SECTION_GLOBAL, core.SVN_CONFIG_OPTION_GLOBAL_IGNORES, None)
***
Now I'd like to verify our default set of required MIME types, so I need
libsvn provides the following function which should be suitable for my
svn_config_enumerate2(svn_config_t cfg, char section,
Two questions arise:
1. How do I define an appropiate callback in Python? Looking at the SWIG
2. What's the baton good for? Is it just some kind of additional data, I
Maybe the devel list is more appropiate for such questions, but I wanted
Thanks,
Tino.
-- "What we nourish flourishes." - "Was wir nähren erblüht." www.lichtkreis-chemnitz.de www.tisc.deReceived on 2010-03-25 15:18:13 CET |
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.